1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:52:27 +01:00

Closes issue #121. Only an issue on Firefox 4b6.

This commit is contained in:
Kris Maglione
2010-11-04 14:06:00 -04:00
parent f89e548b12
commit ffcc8c6916

View File

@@ -42,13 +42,14 @@ const CommandWidgets = Class("CommandWidgets", {
getElement: CommandWidgets.getEditor,
getGroup: function (value) this.activeGroup.commandline,
onChange: function (elem) {
if (!elem.collapsed && elem.inputField != dactyl.focus) {
if (elem.inputField != dactyl.focus) {
elem.selectionStart = elem.value.length;
elem.selectionEnd = elem.value.length;
elem.focus();
}
if (elem.collapsed)
elem.focus();
},
onVisibility: function (elem, visible) visible && elem.inputField != dactyl.focus && elem.focus()
onVisibility: function (elem, visible) visible && elem.focus()
});
this.addElem({
name: "prompt",