Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BlenderPhi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raas
BlenderPhi
Commits
92653fe9
Commit
92653fe9
authored
Feb 25, 2014
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
Keymap search: check 'key_modifier' as well as 'type'
parent
21cb6283
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/scripts/modules/rna_keymap_ui.py
+9
-1
9 additions, 1 deletion
release/scripts/modules/rna_keymap_ui.py
with
9 additions
and
1 deletion
release/scripts/modules/rna_keymap_ui.py
+
9
−
1
View file @
92653fe9
...
...
@@ -297,7 +297,15 @@ def draw_filtered(display_keymaps, filter_type, filter_text, layout):
# main filter func, runs many times
def
filter_func
(
kmi
):
for
kk
,
ki
in
kmi_test_dict
.
items
():
if
getattr
(
kmi
,
kk
)
not
in
ki
:
val
=
getattr
(
kmi
,
kk
)
if
val
==
'
NONE
'
or
val
not
in
ki
:
# exception for 'type'
# also inspect 'key_modifier' as a fallback
if
kk
==
"
type
"
:
val
=
getattr
(
kmi
,
"
key_modifier
"
)
if
not
(
val
==
'
NONE
'
or
val
not
in
ki
):
continue
return
False
return
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment