From a69ad5073cd8c7e41cbacb9abd420e94f6047000 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Wed, 4 Apr 2018 18:58:21 -0700 Subject: [PATCH] Prevent default on pageup/pagedown when completer is active --- notebook/static/notebook/js/completer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/completer.js b/notebook/static/notebook/js/completer.js index 5ecc4a8b6..767dc1599 100644 --- a/notebook/static/notebook/js/completer.js +++ b/notebook/static/notebook/js/completer.js @@ -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');