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

Commit

Permalink
Disable Ctrl-L / Command-L key binding
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mbrubeck committed Jul 11, 2017
1 parent 4bd70fa commit cf62440
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,12 @@
delete transposeletters.bindKey;
editor.commands.addCommand(transposeletters);

// Don't hog Ctrl-L (“focus location bar”) either:
var gotoline = editor.commands.commands.gotoline;
editor.commands.removeCommand("gotoline");
delete gotoline.bindKey;
editor.commands.addCommand(gotoline);

asmButton.onclick = function() {
compile("asm", result, session.getValue(), getRadioValue("version"),
getRadioValue("optimize"), asmButton, backtrace.value);
Expand Down

0 comments on commit cf62440

Please sign in to comment.