diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-16 03:33:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-16 03:33:32 +0300 |
commit | bd5bfad72337f1732419b839c595130bc8f33b05 (patch) | |
tree | 9075d00ab7836d8599092aeb550a446326a96d18 /source | |
parent | 2f4ea475661de2884992bf686f3f3318a2f227ec (diff) |
Fix T47807: Toggle header shortcut doesn't work
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index d485a163bd8..be421d779eb 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3205,8 +3205,8 @@ static int header_exec(bContext *C, wmOperator *UNUSED(op)) static void SCREEN_OT_header(wmOperatorType *ot) { /* identifiers */ - ot->name = "Header"; - ot->description = "Display header"; + ot->name = "Toggle Header"; + ot->description = "Toggle header display"; ot->idname = "SCREEN_OT_header"; /* api callbacks */ @@ -4305,10 +4305,12 @@ void ED_keymap_screen(wmKeyConfig *keyconf) WM_keymap_verify_item(keymap, "SCREEN_OT_area_options", RIGHTMOUSE, KM_PRESS, 0, 0); + WM_keymap_add_item(keymap, "SCREEN_OT_header", F9KEY, KM_PRESS, KM_ALT, 0); + /* Header Editing ------------------------------------------------ */ + /* note: this is only used when the cursor is inside the header */ keymap = WM_keymap_find(keyconf, "Header", 0, 0); - WM_keymap_add_item(keymap, "SCREEN_OT_header", F9KEY, KM_PRESS, KM_ALT, 0); WM_keymap_add_item(keymap, "SCREEN_OT_header_toolbox", RIGHTMOUSE, KM_PRESS, 0, 0); /* Screen General ------------------------------------------------ */ |