Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-09-08 13:17:38 +0300
committerJulian Eisel <julian@blender.org>2022-09-08 13:27:42 +0300
commit82fc52ffc88142e0fa29335e07595c87c173a3a6 (patch)
treed5f001b65c8d643f1a81b1563d0bc254545aebef /source/blender/editors
parent129993c026e910b83b8bc7f0a394f7a4748a2cac (diff)
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_console/space_console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c
index 417c65eb01a..a7ab6bc5169 100644
--- a/source/blender/editors/space_console/space_console.c
+++ b/source/blender/editors/space_console/space_console.c
@@ -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(&region->handlers, keymap);
+
/* own keymap */
keymap = WM_keymap_ensure(wm->defaultconf, "Console", SPACE_CONSOLE, 0);
WM_event_add_keymap_handler_v2d_mask(&region->handlers, keymap);