Skip to content

Commit

Permalink
[JavaScript] Tweak key binding context key order
Browse files Browse the repository at this point in the history
This commit aligns this PR with sublimehq#4022.
  • Loading branch information
deathaxe committed Jul 29, 2024
1 parent d237d2f commit 67d86e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JavaScript/Default.sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@
{ "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context":
[
{ "key": "setting.auto_indent" },
{ "key": "selector", "operand": "source.js, source.jsx, source.ts, source.tsx" },
{ "key": "selection_empty", "match_all": true },
{ "key": "selector", "operand": "source.js, source.jsx, source.ts, source.tsx" },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
},
{ "keys": ["keypad_enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context":
[
{ "key": "setting.auto_indent" },
{ "key": "selector", "operand": "source.js, source.jsx, source.ts, source.tsx" },
{ "key": "selection_empty", "match_all": true },
{ "key": "selector", "operand": "source.js, source.jsx, source.ts, source.tsx" },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
Expand Down

0 comments on commit 67d86e6

Please sign in to comment.