Recognize "Command"/"Cmd" in keybindings
This commit is contained in:
parent
3fa01ae84d
commit
8459afb76e
@ -35,6 +35,8 @@ Changed
|
|||||||
to `<Shift-Escape>`, which makes pasting from the clipboard easier in
|
to `<Shift-Escape>`, which makes pasting from the clipboard easier in
|
||||||
passthrough mode and is also unlikely to conflict with webpage bindings.
|
passthrough mode and is also unlikely to conflict with webpage bindings.
|
||||||
- The `app_id` is now set to `qutebrowser` for Wayland.
|
- The `app_id` is now set to `qutebrowser` for Wayland.
|
||||||
|
- `Command` or `Cmd` can now be used (instead of `Meta`) to map the Command key
|
||||||
|
on macOS.
|
||||||
|
|
||||||
v1.4.2 (unreleased)
|
v1.4.2 (unreleased)
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -270,8 +270,10 @@ def _parse_special_key(keystr):
|
|||||||
replacements = (
|
replacements = (
|
||||||
('control', 'ctrl'),
|
('control', 'ctrl'),
|
||||||
('windows', 'meta'),
|
('windows', 'meta'),
|
||||||
('mod1', 'alt'),
|
|
||||||
('mod4', 'meta'),
|
('mod4', 'meta'),
|
||||||
|
('command', 'meta'),
|
||||||
|
('cmd', 'meta'),
|
||||||
|
('mod1', 'alt'),
|
||||||
('less', '<'),
|
('less', '<'),
|
||||||
('greater', '>'),
|
('greater', '>'),
|
||||||
)
|
)
|
||||||
|
@ -214,8 +214,10 @@ class TestKeySequence:
|
|||||||
@pytest.mark.parametrize('orig, normalized', [
|
@pytest.mark.parametrize('orig, normalized', [
|
||||||
('<Control+x>', '<Ctrl+x>'),
|
('<Control+x>', '<Ctrl+x>'),
|
||||||
('<Windows+x>', '<Meta+x>'),
|
('<Windows+x>', '<Meta+x>'),
|
||||||
('<Mod1+x>', '<Alt+x>'),
|
|
||||||
('<Mod4+x>', '<Meta+x>'),
|
('<Mod4+x>', '<Meta+x>'),
|
||||||
|
('<Command+x>', '<Meta+x>'),
|
||||||
|
('<Cmd+x>', '<Meta+x>'),
|
||||||
|
('<Mod1+x>', '<Alt+x>'),
|
||||||
('<Control-->', '<Ctrl+->'),
|
('<Control-->', '<Ctrl+->'),
|
||||||
('<Windows++>', '<Meta++>'),
|
('<Windows++>', '<Meta++>'),
|
||||||
('<ctrl-x>', '<Ctrl+x>'),
|
('<ctrl-x>', '<Ctrl+x>'),
|
||||||
|
Loading…
Reference in New Issue
Block a user