mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 593456 - Only support the two-tap URLBar edit mode in Landscape [r=mfinkle]
This commit is contained in:
parent
a1bf18e773
commit
a023975012
@ -217,14 +217,17 @@ var BrowserUI = {
|
||||
urlString = "";
|
||||
this._edit.value = urlString;
|
||||
|
||||
if (!this._edit.readOnly) {
|
||||
if (!this._edit.readOnly || Util.isPortrait()) {
|
||||
this._edit.readOnly = false;
|
||||
|
||||
// This is a workaround needed to cycle focus for the IME state
|
||||
// to be set properly (bug 488420)
|
||||
this._edit.blur();
|
||||
gFocusManager.setFocus(this._edit, Ci.nsIFocusManager.FLAG_NOSCROLL);
|
||||
}
|
||||
|
||||
this._edit.readOnly = !isOpened;
|
||||
else {
|
||||
this._edit.readOnly = !isOpened;
|
||||
}
|
||||
}
|
||||
else if (!aEdit) {
|
||||
this._updateToolbar();
|
||||
|
Loading…
Reference in New Issue
Block a user