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,9 +44,12 @@ const CommandWidgets = Class("CommandWidgets", {
|
||||
getGroup: function (value) this.activeGroup.commandline,
|
||||
onChange: function (elem) {
|
||||
if (elem.inputField != dactyl.focus) {
|
||||
try {
|
||||
elem.selectionStart = elem.value.length;
|
||||
elem.selectionEnd = elem.value.length;
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
if (elem.collapsed)
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user