Fix a typo that broke addition of default mouse mappings in gen-config

Also update options/types.py with new action name
This commit is contained in:
Kovid Goyal 2021-07-07 18:06:39 +05:30
parent 1ec07eb17a
commit 65b2ca8f57
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ class Definition:
for x in self.iter_all_non_groups():
if isinstance(x, ShortcutMapping) and which in ('map', '*'):
yield x
elif isinstance(x, MouseMapping) and which == ('mouse_map', '*'):
elif isinstance(x, MouseMapping) and which in ('mouse_map', '*'):
yield x
def parser_func(self, name: str) -> Callable:

View File

@ -773,7 +773,7 @@ defaults.map = [
# reset_font_size
KeyDefinition(False, KeyAction('change_font_size', (True, None, 0.0)), 1024, False, 57347, ()),
# open_url
KeyDefinition(False, KeyAction('kitten', ('hints',)), 1024, False, 101, ()),
KeyDefinition(False, KeyAction('open_url_with_hints'), 1024, False, 101, ()),
# insert_selected_path
KeyDefinition(True, KeyAction('kitten', ('hints', '--type path --program -')), 1024, False, 112, (SingleKey(mods=0, is_native=False, key=102),)),
# open_selected_path