Skip to content

Commit d25b2f8

Browse files
authored
Disable keybindings if editor language is set to 'latex'
1 parent d538022 commit d25b2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
{
3939
"command": "unicode-math-vscode.commit_tab",
4040
"key": "tab",
41-
"when": "editorTextFocus && !inlineSuggestionVisible && !suggestWidgetVisible && !editorTabMovesFocus && !inSnippetMode && !hasSnippetCompletions && !editorTabMovesFocus && !editorReadonly"
41+
"when": "editorTextFocus && !inlineSuggestionVisible && !suggestWidgetVisible && !editorTabMovesFocus && !inSnippetMode && !hasSnippetCompletions && !editorTabMovesFocus && !editorReadonly && !editorLangId != 'latex'"
4242
},
4343
{
4444
"command": "unicode-math-vscode.commit_space",
4545
"key": "space",
46-
"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && !hasSnippetCompletions && !editorTabMovesFocus && !editorReadonly"
46+
"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && !hasSnippetCompletions && !editorTabMovesFocus && !editorReadonly && !editorLangId != 'latex'"
4747
}
4848
]
4949
},

0 commit comments

Comments
 (0)