aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/commands.coffee2
-rw-r--r--content_scripts/vimium.css4
-rw-r--r--lib/dom_utils.coffee2
3 files changed, 3 insertions, 5 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 485195a9..114f46ce 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -58,7 +58,7 @@ Commands =
for line in lines
continue if (line[0] == "\"" || line[0] == "#")
- splitLine = line.split(/\s+/)
+ splitLine = line.replace(/\s+$/, "").split(/\s+/)
lineCommand = splitLine[0]
diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css
index e79f72d3..fb8824c2 100644
--- a/content_scripts/vimium.css
+++ b/content_scripts/vimium.css
@@ -222,11 +222,9 @@ div#vimiumHelpDialogFooter .toggleAdvancedCommands {
div.vimiumHUD {
display: block;
position: fixed;
- top: auto;
- left: auto;
bottom: 0px;
color: black;
- height: 13px;
+ height: auto;
min-height: 13px;
width: auto;
max-width: 400px;
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 1d1b67ba..4f36e395 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -140,7 +140,7 @@ DomUtils =
isSelectable: (element) ->
unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset", "submit"]
(element.nodeName.toLowerCase() == "input" && unselectableTypes.indexOf(element.type) == -1) ||
- element.nodeName.toLowerCase() == "textarea"
+ element.nodeName.toLowerCase() == "textarea" || element.isContentEditable
# Input or text elements are considered focusable and able to receieve their own keyboard events, and will
# enter insert mode if focused. Also note that the "contentEditable" attribute can be set on any element