From f3e1e6df4202a20fa75543f6847782be515dae06 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 23 Aug 2018 19:13:59 +0300 Subject: Fix keybindings --- code/package.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'code') diff --git a/code/package.json b/code/package.json index 042821b1c..35367edb6 100644 --- a/code/package.json +++ b/code/package.json @@ -39,16 +39,24 @@ }, { "command": "libsyntax-rust.matchingBrace", - "key": "ctrl+shift+m", "title": "Rust Matching Brace" }, { "command": "libsyntax-rust.parentModule", - "key": "ctrl+u", "title": "Rust Parent Module" } ], "keybindings": [ + { + "command": "libsyntax-rust.parentModule", + "key": "ctrl+u", + "when": "editorTextFocus && editorLangId == rust" + }, + { + "command": "libsyntax-rust.matchingBrace", + "key": "ctrl+shift+m", + "when": "editorTextFocus && editorLangId == rust" + }, { "command": "libsyntax-rust.extendSelection", "key": "ctrl+w", -- cgit v1.2.3