From f3e1e6df4202a20fa75543f6847782be515dae06 Mon Sep 17 00:00:00 2001
From: Aleksey Kladov <aleksey.kladov@gmail.com>
Date: Thu, 23 Aug 2018 19:13:59 +0300
Subject: [PATCH] Fix keybindings

---
 code/package.json | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/code/package.json b/code/package.json
index 042821b1cad..35367edb6d0 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",