Merge pull request #3500 from gnestor/issue-2518

Prevent default on pageup/pagedown when completer is active
This commit is contained in:
Thomas Kluyver 2018-04-19 09:47:39 +02:00 committed by GitHub
commit fc24f31be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');