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:
authorNicholas Rishel <rishel.nick@gmail.com>2013-06-08 09:23:47 +0400
committerNicholas Rishel <rishel.nick@gmail.com>2013-06-08 09:23:47 +0400
commite34c63267cd452ba1f533e7c5c26961131c23d0c (patch)
tree232fbbb08dbb9d226c3e14b1804b134ca10d284d /source/blender/editors/space_file
parent58a290234b0719ce48854e2f6744575b353bf7d3 (diff)
Maps back and forward history to back and forward buttons on a 5 button mouse.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/space_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 4293a384ccf..1783d15b0b4 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -442,6 +442,10 @@ static void file_keymap(struct wmKeyConfig *keyconf)
RNA_boolean_set(kmi->ptr, "fill", TRUE);
RNA_boolean_set(kmi->ptr, "open", FALSE);
+ /* front and back mouse folder navigation */
+ WM_keymap_add_item(keymap, "FILE_OT_previous", BUTTON4MOUSE, KM_CLICK, 0, 0);
+ WM_keymap_add_item(keymap, "FILE_OT_next", BUTTON5MOUSE, KM_CLICK, 0, 0);
+
WM_keymap_add_item(keymap, "FILE_OT_select_all_toggle", AKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "FILE_OT_refresh", PADPERIOD, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "FILE_OT_select_border", BKEY, KM_PRESS, 0, 0);