add clear_all_mouse_shortcuts option to clear mouse_maps

This commit is contained in:
bdeshi
2021-08-07 21:33:56 +06:00
parent 4849e07c26
commit db5a2d2141
6 changed files with 29 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ from kitty.conf.utils import (
)
from kitty.options.utils import (
active_tab_title_template, adjust_baseline, adjust_line_height, allow_hyperlinks,
allow_remote_control, box_drawing_scale, clear_all_shortcuts, clipboard_control,
config_or_absolute_path, copy_on_select, cursor_text_color,
allow_remote_control, box_drawing_scale, clear_all_mouse_shortcuts, clear_all_shortcuts,
clipboard_control, config_or_absolute_path, copy_on_select, cursor_text_color,
deprecated_hide_window_decorations_aliases, deprecated_macos_show_window_title_in_menubar_alias,
deprecated_send_text, disable_ligatures, edge_width, env, font_features, hide_window_decorations,
kitten_alias, macos_option_as_alt, macos_titlebar_color, optional_edge_width, parse_map,
@@ -93,6 +93,9 @@ class Parser:
def clear_all_shortcuts(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
clear_all_shortcuts(val, ans)
def clear_all_mouse_shortcuts(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
clear_all_mouse_shortcuts(val, ans)
def click_interval(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['click_interval'] = float(val)