mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:07:58 +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,
|
getGroup: function (value) this.activeGroup.commandline,
|
||||||
onChange: function (elem) {
|
onChange: function (elem) {
|
||||||
if (elem.inputField != dactyl.focus) {
|
if (elem.inputField != dactyl.focus) {
|
||||||
elem.selectionStart = elem.value.length;
|
try {
|
||||||
elem.selectionEnd = elem.value.length;
|
elem.selectionStart = elem.value.length;
|
||||||
|
elem.selectionEnd = elem.value.length;
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
}
|
}
|
||||||
if (elem.collapsed)
|
if (elem.collapsed)
|
||||||
elem.focus();
|
elem.focus();
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const StatusLine = Module("statusline", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
get visible() !this.statusBar.collapsed,
|
get visible() !this.statusBar.collapsed && !this.statusBar.hidden,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the status bar to indicate how secure the website is:
|
* Update the status bar to indicate how secure the website is:
|
||||||
|
|||||||
Reference in New Issue
Block a user