disabled `Ctrl+L` quick key to go to a line, instead use the default browser behavior of selecting the address bar.

This commit is contained in:
jos 2015-12-21 13:24:37 +01:00
parent 03c82ba38f
commit 0b3b23e92e
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ https://github.com/josdejong/jsoneditor
- Replaced the PNG icon images with SVG. Thanks @1j01.
- Fixed #234: Remove dependency on a fork of the `jsonlint` project on github.
- Fixed: disabled `Ctrl+L` quick key to go to a line, instead use the default
browser behavior of selecting the address bar.
## 2015-06-13, version 4.2.1

View File

@ -139,6 +139,8 @@ textmode.create = function (container, options) {
editor.getSession().setTabSize(this.indentation);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
editor.commands.bindKey('Ctrl-L', null); // disable Ctrl+L (is used by the browser to select the address bar)
editor.commands.bindKey('Command-L', null); // disable Ctrl+L (is used by the browser to select the address bar)
this.editor = editor;
var poweredBy = document.createElement('a');