Console: Support page up/down and home keys for scrolling
- Page up/down scrolls up/down an entire page - Home resets the scrolling back to the bottom. The fact that these were missing was probably an oversight. Other similar editors have them. This works by including the "View2D Buttons List" keymap for the console, which the other similar editors use as well.
This commit is contained in:
parent
129993c026
commit
82fc52ffc8
Notes:
blender-bot
2025-02-14 01:16:18 +00:00
Referenced by commit ea35c237fc
, Fix T101180: console HOME key doesn't work
@ -121,6 +121,9 @@ static void console_main_region_init(wmWindowManager *wm, ARegion *region)
|
||||
region->v2d.cur.ymax = prev_y_min + cur_y_range;
|
||||
}
|
||||
|
||||
keymap = WM_keymap_ensure(wm->defaultconf, "View2D Buttons List", 0, 0);
|
||||
WM_event_add_keymap_handler(®ion->handlers, keymap);
|
||||
|
||||
/* own keymap */
|
||||
keymap = WM_keymap_ensure(wm->defaultconf, "Console", SPACE_CONSOLE, 0);
|
||||
WM_event_add_keymap_handler_v2d_mask(®ion->handlers, keymap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user