fixing emacs key handler when key code == -1 (this can happen with the
change introduced in #5e2c5f4)
This commit is contained in:
parent
08d2ebb5b2
commit
3b7569542f
1 changed files with 4 additions and 0 deletions
|
|
@ -219,6 +219,10 @@ exports.handler.bindKey = function(key, command) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.handler.handleKeyboard = function(data, hashId, key, keyCode) {
|
exports.handler.handleKeyboard = function(data, hashId, key, keyCode) {
|
||||||
|
// if keyCode == -1 a non-printable key was pressed, such as just
|
||||||
|
// control. Handling those is currently not supported in this handler
|
||||||
|
if (keyCode === -1) return undefined;
|
||||||
|
|
||||||
var editor = data.editor;
|
var editor = data.editor;
|
||||||
// insertstring data.count times
|
// insertstring data.count times
|
||||||
if (hashId == -1) {
|
if (hashId == -1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue