File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default class Edit extends Module{
6969 this . subscribe ( "data-refreshing" , this . cancelEdit . bind ( this ) ) ;
7070 this . subscribe ( "clipboard-paste" , this . pasteBlocker . bind ( this ) ) ;
7171
72- if ( ! this . table . modules . selectRange ) {
72+ if ( ! this . confirm ( "edit-nav-disabled" ) ) {
7373 this . subscribe ( "keybinding-nav-prev" , this . navigatePrev . bind ( this , undefined ) ) ;
7474 this . subscribe ( "keybinding-nav-next" , this . keybindingNavigateNext . bind ( this ) ) ;
7575
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ export default class SelectRange extends Module {
6565 console . warn ( "Having multiple frozen columns with selectRange option may result in unpredictable behavior." ) ;
6666 }
6767 }
68+
69+ this . subscribe ( "edit-nav-disabled" , ( ) => {
70+ return true ; // Disable navigation in edit module
71+ } ) ;
6872 }
6973
7074
You can’t perform that action at this time.
0 commit comments