Browse Source

Remove restriction on the notebook context menu

Steven Silvester 7 năm trước cách đây
mục cha
commit
7b2690fe16
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  1. 0 9
      packages/notebook/src/widget.ts

+ 0 - 9
packages/notebook/src/widget.ts

@@ -1381,15 +1381,6 @@ class Notebook extends StaticNotebook {
     // Mouse click should always ensure the notebook is focused.
     this._ensureFocus(true);
 
-    // Secondary click deselects cells and possibly changes the active cell.
-    if (event.button === 2) {
-      this.deselectAll();
-      if (index !== -1) {
-        this.activeCellIndex = index;
-      }
-      return;
-    }
-
     if (index !== -1) {
 
       if (event.shiftKey) {