misc fixes

This commit is contained in:
nightwing 2013-08-26 21:57:22 +04:00
commit 79fbec43b0
5 changed files with 16 additions and 2 deletions

View file

@ -89,6 +89,9 @@ function HashHandler(config, platform) {
this.addCommands = function(commands) {
commands && Object.keys(commands).forEach(function(name) {
var command = commands[name];
if (!command)
return;
if (typeof command === "string")
return this.bindKey(command, name);

View file

@ -108,8 +108,11 @@ var KeyBinding = function(editor) {
success = commands.exec(toExecute.command, this.$editor, toExecute.args, e);
}
// 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);
}
if (success)
break;
}

View file

@ -53,7 +53,7 @@ var LogiQLHighlightRules = function() {
//A single line comment.
},
{ token: 'constant.numeric',
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?',
regex: '\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?[fd]?',
//An integer constant.
//Or a Real number.
},

View file

@ -48,6 +48,10 @@
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 {
border: 1px solid #424242
}

View file

@ -44,6 +44,10 @@
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 {
background: #393939
}