mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:02:27 +01:00
Focus the command-line with its value changes as well as when it's un-collapsed.
This commit is contained in:
@@ -40,6 +40,8 @@ const CommandWidgets = Class("CommandWidgets", {
|
||||
onChange: function (elem) {
|
||||
elem.selectionStart = elem.value.length;
|
||||
elem.selectionEnd = elem.value.length;
|
||||
if (!elem.collapsed)
|
||||
elem.focus();
|
||||
},
|
||||
onVisibility: function (elem, visible) visible && elem.focus()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user