Skip to content

Commit

Permalink
Merge pull request #3500 from gnestor/issue-2518
Browse files Browse the repository at this point in the history
Prevent default on pageup/pagedown when completer is active
  • Loading branch information
takluyver authored Apr 19, 2018
2 parents 5875235 + a69ad50 commit fc24f31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notebook/static/notebook/js/completer.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ define([
index = Math.min(Math.max(index, 0), options.length-1);
this.sel[0].selectedIndex = index;
} else if (code == keycodes.pageup || code == keycodes.pagedown) {
event.codemirrorIgnore = true;
event._ipkmIgnore = true;

options = this.sel.find('option');
Expand Down

0 comments on commit fc24f31

Please sign in to comment.