1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 21:58:00 +01:00

Take into account the possibility that the statusbar may have been hidden by strange means. Closes issue #123.

This commit is contained in:
Kris Maglione
2010-11-07 10:30:54 -05:00
parent ab81ed4cb4
commit 5c6a924f1e
2 changed files with 6 additions and 3 deletions

View File

@@ -44,8 +44,11 @@ const CommandWidgets = Class("CommandWidgets", {
getGroup: function (value) this.activeGroup.commandline,
onChange: function (elem) {
if (elem.inputField != dactyl.focus) {
elem.selectionStart = elem.value.length;
elem.selectionEnd = elem.value.length;
try {
elem.selectionStart = elem.value.length;
elem.selectionEnd = elem.value.length;
}
catch (e) {}
}
if (elem.collapsed)
elem.focus();