Bugfix [#37304] Arrow Keys Stop Working When Mouse Over Outliner
authorJoshua Leung <aligorith@gmail.com>
Tue, 5 Nov 2013 01:29:45 +0000 (01:29 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 5 Nov 2013 01:29:45 +0000 (01:29 +0000)
Frame change hotkeys now work in the following places:
1) Outliner - Main region
2) Action/NLA Editors - Channels Region
3) Info View - Reports region

Other places identified by the bugreport (but which I've decided to leave
alone):
- Text Editor (when no file open) - The way the keymaps work here means that
this can't be done without affecting normal text editing

- File Browser - What's the point of changing frames when you're about to
open/save the file?

- User Prefs - Is there any real point here either? Also, this is usually shown
in a separate window.

source/blender/editors/space_action/space_action.c
source/blender/editors/space_info/space_info.c
source/blender/editors/space_nla/space_nla.c
source/blender/editors/space_outliner/space_outliner.c

index a89a02b7e01aabb2292474f2fb33596ff9c8a49f..fdccedd9c3cff13e9b3118b5cfb6e217ae13c5bc 100644 (file)
@@ -541,7 +541,7 @@ void ED_spacetype_action(void)
        art = MEM_callocN(sizeof(ARegionType), "spacetype action region");
        art->regionid = RGN_TYPE_CHANNELS;
        art->prefsizex = 200;
-       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES;
        
        art->init = action_channel_area_init;
        art->draw = action_channel_area_draw;
index 07f4b64d187e036ce865884ef842b59cbf03d497..aaa52597357c5bd306596119a30121ce76638959 100644 (file)
@@ -327,7 +327,7 @@ void ED_spacetype_info(void)
        /* regions: main window */
        art = MEM_callocN(sizeof(ARegionType), "spacetype info region");
        art->regionid = RGN_TYPE_WINDOW;
-       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES;
 
        art->init = info_main_area_init;
        art->draw = info_main_area_draw;
index 4d4f27cf1ad6a15623f650afc2b74ab0e2f902dd..d0ba33358e4a1d27adec7c198143534444d6c199 100644 (file)
@@ -544,7 +544,7 @@ void ED_spacetype_nla(void)
        art = MEM_callocN(sizeof(ARegionType), "spacetype nla region");
        art->regionid = RGN_TYPE_CHANNELS;
        art->prefsizex = 200;
-       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES;
        
        art->init = nla_channel_area_init;
        art->draw = nla_channel_area_draw;
index d695ffa46d58573f89a30c74bd3ad6d72f9d60e6..3a7d001f432331a5a7fe8bd34a939c2cc1666f7e 100644 (file)
@@ -476,9 +476,9 @@ void ED_spacetype_outliner(void)
        st->dropboxes = outliner_dropboxes;
        
        /* regions: main window */
-       art = MEM_callocN(sizeof(ARegionType), "spacetype time region");
+       art = MEM_callocN(sizeof(ARegionType), "spacetype outliner region");
        art->regionid = RGN_TYPE_WINDOW;
-       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D;
+       art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES;
        
        art->init = outliner_main_area_init;
        art->draw = outliner_main_area_draw;
@@ -487,7 +487,7 @@ void ED_spacetype_outliner(void)
        BLI_addhead(&st->regiontypes, art);
        
        /* regions: header */
-       art = MEM_callocN(sizeof(ARegionType), "spacetype time header region");
+       art = MEM_callocN(sizeof(ARegionType), "spacetype outliner header region");
        art->regionid = RGN_TYPE_HEADER;
        art->prefsizey = HEADERY;
        art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES | ED_KEYMAP_HEADER;