diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 59c9d2f55..de9ab4aa0 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -35,6 +35,8 @@ Changed to ``, which makes pasting from the clipboard easier in passthrough mode and is also unlikely to conflict with webpage bindings. - 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) ------------------- diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py index e22e24f77..bef3c7cf0 100644 --- a/qutebrowser/keyinput/keyutils.py +++ b/qutebrowser/keyinput/keyutils.py @@ -270,8 +270,10 @@ def _parse_special_key(keystr): replacements = ( ('control', 'ctrl'), ('windows', 'meta'), - ('mod1', 'alt'), ('mod4', 'meta'), + ('command', 'meta'), + ('cmd', 'meta'), + ('mod1', 'alt'), ('less', '<'), ('greater', '>'), ) diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py index dc8fe0a53..d6e7bce34 100644 --- a/tests/unit/keyinput/test_keyutils.py +++ b/tests/unit/keyinput/test_keyutils.py @@ -214,8 +214,10 @@ class TestKeySequence: @pytest.mark.parametrize('orig, normalized', [ ('', ''), ('', ''), - ('', ''), ('', ''), + ('', ''), + ('', ''), + ('', ''), ('', ''), ('', ''), ('', ''),