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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user