We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f5b03 commit ffb96cfCopy full SHA for ffb96cf
addon/hint/show-hint.js
@@ -1,8 +1,6 @@
1
// CodeMirror, copyright (c) by Marijn Haverbeke and others
2
// Distributed under an MIT license: https://codemirror.net/LICENSE
3
4
-var mac = /Mac/.test(navigator.platform);
5
-
6
(function(mod) {
7
if (typeof exports == "object" && typeof module == "object") // CommonJS
8
mod(require("../../lib/codemirror"));
@@ -170,6 +168,8 @@ var mac = /Mac/.test(navigator.platform);
170
168
Esc: handle.close
171
169
};
172
+ var mac = /Mac/.test(navigator.platform);
+
173
if (mac) {
174
baseMap["Ctrl-P"] = function() {handle.moveFocus(-1);};
175
baseMap["Ctrl-N"] = function() {handle.moveFocus(1);};
0 commit comments