Skip to content

Commit

Permalink
Added "primary" to keymap (but don't resolve it) (#19)
Browse files Browse the repository at this point in the history
Updates #7.
  • Loading branch information
Thomas Smith authored and FichteFoll committed Jun 8, 2018
1 parent f292d88 commit 5bf8505
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion st_package_reviewer/check/file/check_keymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _verify(self):

@classmethod
def _verify_and_normalize_chords(cls, chords):
modifiers = ("ctrl", "super", "alt", "shift")
modifiers = ("ctrl", "super", "alt", "shift", "primary")

if not chords or not isinstance(chords, list):
raise KeyMappingError("'keys' key is empty or not a list")
Expand Down
3 changes: 2 additions & 1 deletion tests/packages/Keymaps/Default.sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
// invalid key in multi-chord
{ "keys": ["ctrl+k", "nope"], "command": "noop" },
// valid key binding
{ "keys": ["super+ctrl+alt+shift++"], "command": "noop" }
{ "keys": ["super+ctrl+alt+shift++"], "command": "noop" },
{ "keys": ["primary+shift+1"], "command": "noop" },
]

0 comments on commit 5bf8505

Please sign in to comment.