mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 500540 - "Can not input any characters in URLBar when focused in it by tab key" [r=mark.finkle]
This commit is contained in:
parent
2fb8438209
commit
b06f77c5a9
@ -174,9 +174,8 @@ var BrowserUI = {
|
||||
|
||||
_editToolbar : function _editToolbar(aEdit) {
|
||||
var icons = document.getElementById("urlbar-icons");
|
||||
if (aEdit && this._edit.readOnly) {
|
||||
if (aEdit && icons.getAttribute("mode") != "edit") {
|
||||
icons.setAttribute("mode", "edit");
|
||||
this._edit.readOnly = false;
|
||||
this._edit.defaultValue = this._edit.value;
|
||||
|
||||
let urlString = this.getDisplayURI(Browser.selectedBrowser);
|
||||
@ -184,13 +183,16 @@ var BrowserUI = {
|
||||
urlString = "";
|
||||
this._edit.value = urlString;
|
||||
|
||||
// This is a workaround for bug 488420, needed to cycle focus for the
|
||||
// IME state to be set properly. Testing shows we only really need to
|
||||
// do this the first time.
|
||||
this._edit.inputField.blur();
|
||||
|
||||
this._edit.inputField.focus();
|
||||
this._edit.select();
|
||||
}
|
||||
else if (!aEdit && !this._edit.readOnly) {
|
||||
else if (!aEdit && icons.getAttribute("mode") != "view") {
|
||||
icons.setAttribute("mode", "view");
|
||||
this._edit.readOnly = true;
|
||||
this._edit.inputField.blur();
|
||||
this._edit.reallyClosePopup();
|
||||
}
|
||||
|
@ -242,7 +242,6 @@
|
||||
autocompletepopup="popup_autocomplete"
|
||||
enablehistory="false"
|
||||
maxrows="6"
|
||||
readonly="true"
|
||||
completeselectedindex="true"
|
||||
minresultsforpopup="0"
|
||||
flex="1"
|
||||
|
Loading…
Reference in New Issue
Block a user