Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 15cd668

Browse files
committed
Disable Ctrl-L key binding
Fixes #293. Note that some browsers (e.g. Safari) already prevent web pages from overriding this key binding, so it was broken for some users anyway.
1 parent 4bd70fa commit 15cd668

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

static/web.js

+6
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,12 @@
784784
delete transposeletters.bindKey;
785785
editor.commands.addCommand(transposeletters);
786786

787+
// Don't hog Ctrl-L (“focus location bar”) either:
788+
var transposeletters = editor.commands.commands.gotoline;
789+
editor.commands.removeCommand("gotoline");
790+
delete gotoline.bindKey;
791+
editor.commands.addCommand(gotoline);
792+
787793
asmButton.onclick = function() {
788794
compile("asm", result, session.getValue(), getRadioValue("version"),
789795
getRadioValue("optimize"), asmButton, backtrace.value);

0 commit comments

Comments
 (0)