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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-10 11:18:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-10 11:18:43 +0400
commitbb6255b8290ae74e7ba57bb54a811852f7f3ae31 (patch)
treef1eb8d3300f6abf95a34a35226f033e3c26e9edc /release
parent83fe8e549eaa812a751fbd302e51fae0fe985020 (diff)
Improvements to addon-prefs key search suggested by Yang Niren.
- add accent_grave. - strip the search string. - add numpad numbers (currently these match regular numbers). also remove unneeded forward declarations in path_util.c
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref_keymap.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py
index 0842a90762c..e800171f61c 100644
--- a/release/scripts/startup/bl_ui/space_userpref_keymap.py
+++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py
@@ -230,12 +230,16 @@ class InputKeyMapPanel:
del enum
self._EVENT_TYPE_MAP.update({
+ "`": 'ACCENT_GRAVE',
"*": 'NUMPAD_ASTERIX',
"/": 'NUMPAD_SLASH',
"RMB": 'RIGHTMOUSE',
"LMB": 'LEFTMOUSE',
"MMB": 'MIDDLEMOUSE',
})
+ self._EVENT_TYPE_MAP.update({
+ "%d" % i: "NUMPAD_%d" % i for i in range(9)
+ })
# done with once off init
filter_text_split = filter_text.strip()
@@ -365,8 +369,8 @@ class InputKeyMapPanel:
col.separator()
display_keymaps = keyconfig_utils.keyconfig_merge(kc, kc)
filter_type = spref.filter_type
- filter_text = spref.filter_text
- if filter_text != "":
+ filter_text = spref.filter_text.strip()
+ if filter_text:
filter_text = filter_text.lower()
ok = self.draw_filtered(display_keymaps, filter_type, filter_text, col)
else:
@@ -377,7 +381,7 @@ class InputKeyMapPanel:
rowsub.prop(spref, "filter_type", text="")
rowsubsub = rowsub.row(align=True)
if not ok:
- rowsubsub.alert = True
+ rowsubsub.alert = True
rowsubsub.prop(spref, "filter_text", text="", icon='VIEWZOOM')