Skip to content

Commit

Permalink
Merge pull request #1002 from juhasch/fix/navigation-hotkeys
Browse files Browse the repository at this point in the history
Update extension to 5.x
  • Loading branch information
juhasch authored Jun 15, 2017
2 parents 2ce1584 + 95d0660 commit a9f8845
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Description: Additional hotkeys for easier navigation in the notebook
Link: readme.md
Icon: icon.png
Main: main.js
Compatibility: 4.x
Compatibility: 4.x, 5.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,6 @@ define([
cell.focus_cell();
return false;
}
},

'shift-down': {
help : 'shift down',
help_index : 'aa',
handler : function() {
var index = IPython.notebook.get_selected_index();
if (index !== (IPython.notebook.ncells()-1) && index !== null) {
IPython.notebook.extend_selection('down');
IPython.notebook.focus_cell();
}
return false;
}
},

'shift-up': {
help : 'shift down',
help_index : 'aa',
handler : function() {
var index = IPython.notebook.get_selected_index();
if (index !== 0 && index !== null) {
IPython.notebook.extend_selection('up');
IPython.notebook.focus_cell();
}
return false;
}
}

};
Expand Down

0 comments on commit a9f8845

Please sign in to comment.