File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -515,10 +515,12 @@ def _merge_shortcuts(self, user_shortcuts):
515515 create_identifier (binding .command ): binding .command
516516 for binding in KEY_BINDINGS
517517 }
518- allowed_commands .update ({
518+ allowed_commands .update (
519+ {
519520 create_identifier (command ): command
520521 for command in UNASSIGNED_ALLOWED_COMMANDS
521- })
522+ }
523+ )
522524 shortcuts_to_skip = []
523525 shortcuts_to_add = []
524526
@@ -591,12 +593,14 @@ def _merge_shortcuts(self, user_shortcuts):
591593 RuntimeBinding (
592594 command ,
593595 keys = new_keys or old_keys ,
594- filter = filter_from_string (new_filter )
595- if new_filter is not None
596- else (
597- old_filter
598- if old_filter is not None
599- else filter_from_string ("always" )
596+ filter = (
597+ filter_from_string (new_filter )
598+ if new_filter is not None
599+ else (
600+ old_filter
601+ if old_filter is not None
602+ else filter_from_string ("always" )
603+ )
600604 ),
601605 )
602606 )
You can’t perform that action at this time.
0 commit comments