misc fixes
This commit is contained in:
parent
3a23eacda2
commit
79fbec43b0
5 changed files with 16 additions and 2 deletions
|
|
@ -89,6 +89,9 @@ function HashHandler(config, platform) {
|
||||||
this.addCommands = function(commands) {
|
this.addCommands = function(commands) {
|
||||||
commands && Object.keys(commands).forEach(function(name) {
|
commands && Object.keys(commands).forEach(function(name) {
|
||||||
var command = commands[name];
|
var command = commands[name];
|
||||||
|
if (!command)
|
||||||
|
return;
|
||||||
|
|
||||||
if (typeof command === "string")
|
if (typeof command === "string")
|
||||||
return this.bindKey(command, name);
|
return this.bindKey(command, name);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,11 @@ var KeyBinding = function(editor) {
|
||||||
success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);
|
success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);
|
||||||
}
|
}
|
||||||
// do not stop input events to not break repeating
|
// do not stop input events to not break repeating
|
||||||
if (success && e && hashId != -1 && toExecute.passEvent != true)
|
if (success && e && hashId != -1 &&
|
||||||
|
toExecute.passEvent != true && toExecute.command.passEvent != true
|
||||||
|
) {
|
||||||
event.stopEvent(e);
|
event.stopEvent(e);
|
||||||
|
}
|
||||||
if (success)
|
if (success)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ var LogiQLHighlightRules = function() {
|
||||||
//A single line comment.
|
//A single line comment.
|
||||||
},
|
},
|
||||||
{ token: 'constant.numeric',
|
{ token: 'constant.numeric',
|
||||||
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?',
|
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?[fd]?',
|
||||||
//An integer constant.
|
//An integer constant.
|
||||||
//Or a Real number.
|
//Or a Real number.
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,10 @@
|
||||||
background-color: #2A2A2A
|
background-color: #2A2A2A
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ace-tomorrow-night-bright .ace_stack {
|
||||||
|
background-color: rgb(66, 90, 44);
|
||||||
|
}
|
||||||
|
|
||||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {
|
.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {
|
||||||
border: 1px solid #424242
|
border: 1px solid #424242
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,10 @@
|
||||||
border: 1px solid #6A6A6A
|
border: 1px solid #6A6A6A
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ace-tomorrow-night-bright .ace_stack {
|
||||||
|
background: rgb(66, 90, 44)
|
||||||
|
}
|
||||||
|
|
||||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {
|
.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {
|
||||||
background: #393939
|
background: #393939
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue