Skip to content

Commit a9f8845

Browse files
authored
Merge pull request #1002 from juhasch/fix/navigation-hotkeys
Update extension to 5.x
2 parents 2ce1584 + 95d0660 commit a9f8845

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

src/jupyter_contrib_nbextensions/nbextensions/navigation-hotkeys/hotkeys.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Description: Additional hotkeys for easier navigation in the notebook
44
Link: readme.md
55
Icon: icon.png
66
Main: main.js
7-
Compatibility: 4.x
7+
Compatibility: 4.x, 5.x

src/jupyter_contrib_nbextensions/nbextensions/navigation-hotkeys/main.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -85,32 +85,6 @@ define([
8585
cell.focus_cell();
8686
return false;
8787
}
88-
},
89-
90-
'shift-down': {
91-
help : 'shift down',
92-
help_index : 'aa',
93-
handler : function() {
94-
var index = IPython.notebook.get_selected_index();
95-
if (index !== (IPython.notebook.ncells()-1) && index !== null) {
96-
IPython.notebook.extend_selection('down');
97-
IPython.notebook.focus_cell();
98-
}
99-
return false;
100-
}
101-
},
102-
103-
'shift-up': {
104-
help : 'shift down',
105-
help_index : 'aa',
106-
handler : function() {
107-
var index = IPython.notebook.get_selected_index();
108-
if (index !== 0 && index !== null) {
109-
IPython.notebook.extend_selection('up');
110-
IPython.notebook.focus_cell();
111-
}
112-
return false;
113-
}
11488
}
11589

11690
};

0 commit comments

Comments
 (0)