зеркало из https://github.com/mozilla/gecko-dev.git
bug 348137 - Make accel+F focus on search bar. patch by jminta, r1=lilmatt, r2=mvl
This commit is contained in:
Родитель
3015dd23c4
Коммит
26f9d9dce4
|
@ -288,6 +288,7 @@
|
|||
<!ENTITY calendar.unifinder.tree.location.label "Location">
|
||||
<!ENTITY calendar.unifinder.tree.status.label "Status">
|
||||
<!ENTITY calendar.unifinder.tree.calendarname.label "Calendar Name">
|
||||
<!ENTITY calendar.find.key "F">
|
||||
|
||||
<!ENTITY calendar.gototoday.button.tooltip "Go to today" >
|
||||
<!ENTITY calendar.choosedate.button.tooltip "Choose date to go to" >
|
||||
|
|
|
@ -844,3 +844,7 @@ function unifinderKeyPress(aEvent) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function focusSearch() {
|
||||
document.getElementById("unifinder-search-field").focus();
|
||||
}
|
||||
|
|
|
@ -153,6 +153,11 @@
|
|||
<key id="import_key" key="&calendar.import.key;" observes="import_command" modifiers="accel"/>
|
||||
<key id="reload_server_key" key="&calendar.reloadserver.key;" observes="reload_remote_calendars" modifiers="accel"/>
|
||||
|
||||
<key id="find_key"
|
||||
key="&calendar.find.key;"
|
||||
modifiers="accel"
|
||||
oncommand="focusSearch();"/>
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
<key id="key_minimizeWindow" key="&minimizeWindow.key;" command="minimizeWindow" modifiers="accel"/>
|
||||
<key id="key_preferencesCmdMac" key="&preferencesCmdMac.commandkey;" modifiers="&preferencesCmdMac.modifiers;"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче