mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 16:04:11 +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) {
|
onChange: function (elem) {
|
||||||
elem.selectionStart = elem.value.length;
|
elem.selectionStart = elem.value.length;
|
||||||
elem.selectionEnd = elem.value.length;
|
elem.selectionEnd = elem.value.length;
|
||||||
|
if (!elem.collapsed)
|
||||||
|
elem.focus();
|
||||||
},
|
},
|
||||||
onVisibility: function (elem, visible) visible && elem.focus()
|
onVisibility: function (elem, visible) visible && elem.focus()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user