зеркало из https://github.com/mozilla/gecko-dev.git
Bug 96843: 'Find in this page' textfield doesn't get focus by default. Patch by James Kelley <oneiros@darkspire.net>, r=kin, sr=alecf.
This commit is contained in:
Родитель
caa9e6f319
Коммит
253004d746
|
@ -97,8 +97,7 @@ function onLoad()
|
|||
|
||||
if (dialog.findKey.value)
|
||||
dialog.findKey.select();
|
||||
else
|
||||
dialog.findKey.focus();
|
||||
dialog.findKey.focus();
|
||||
}
|
||||
|
||||
function onUnload()
|
||||
|
@ -125,6 +124,8 @@ function onOK()
|
|||
if (!dialog.bundle)
|
||||
dialog.bundle = document.getElementById("findBundle");
|
||||
window.alert(dialog.bundle.getString("notFoundWarning"));
|
||||
dialog.findKey.select();
|
||||
dialog.findKey.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче