소스 검색

Fix shortcut selectors and update notebook dependency

Steven Silvester 9 년 전
부모
커밋
028eb6e570
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      package.json
  2. 2 2
      src/shortcuts/plugin.ts

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "codemirror": "^5.10.0",
     "jquery": "^2.2.0",
     "jquery-ui": "^1.10.5",
-    "jupyter-js-notebook": "^0.13.2",
+    "jupyter-js-notebook": "^0.13.3",
     "jupyter-js-services": "^0.6.1",
     "jupyter-js-ui": "^0.2.0",
     "jupyter-js-utils": "^0.3.0",

+ 2 - 2
src/shortcuts/plugin.ts

@@ -88,12 +88,12 @@ const SHORTCUTS = [
   },
   {
     command: 'notebook:interrupt-kernel',
-    selector: '.jp-Notebook-cell',
+    selector: '.jp-Cell.jp-mod-commandMode',
     sequence: ['I', 'I']
   }, 
   {
     command: 'notebook:restart-kernel',
-    selector: '.jp-Notebook-cell',
+    selector: '.jp-Cell.jp-mod-commandMode',
     sequence: ['0', '0'],
   }, 
   {