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

Disable Ctrl-L / Command-L key binding #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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