Parcourir la source

Remove restriction on the notebook context menu

Steven Silvester il y a 7 ans
Parent
commit
7b2690fe16
1 fichiers modifiés avec 0 ajouts et 9 suppressions
  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) {