land 258694 on trunk - cross platform search keybinding now applies to linux now that GTK emacs pref is observed r=bryner

This commit is contained in:
ben%bengoodger.com 2004-09-10 07:55:06 +00:00
Родитель 2faa8b2e03
Коммит 391d331e51
2 изменённых файлов: 46 добавлений и 3 удалений

Просмотреть файл

@ -176,14 +176,32 @@
modifiers="accel"/>
<key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
modifiers="alt"/>
#
# Search Command Key Logic works like this:
#
# Unix: Ctrl+J (0.8, 0.9 support)
# Ctrl+K (cross platform binding)
# Mac: Ctrl+K (cross platform binding)
# Win: Ctrl+K (cross platform binding)
# Ctrl+E (IE compat)
#
# We support Ctrl+K on all platforms now and advertise it in the menu since it is
# our standard - it is a "safe" choice since it is near no harmful keys like "W" as
# "E" is. People mourning the loss of Ctrl+K for emacs compat can switch their GTK
# system setting to use emacs emulation, and we should respect it. Focus-Search-Box
# is a fundamental keybinding and we are maintaining a XP binding so that it is easy
# for people to switch to Linux.
#
# Do *not* tamper with these values without talking to ben@mozilla.org
#
#ifdef XP_UNIX
#ifndef XP_MACOSX
<key id="key_search" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/>
#else
<key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
<key id="key_search2" key="&searchFocusUnix.commandkey;" command="Tools:Search" modifiers="accel"/>
#endif
<key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
#else
<key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
<key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
#endif
<key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/>
<key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>

Просмотреть файл

@ -199,8 +199,33 @@
<!ENTITY openCmd.commandkey "l">
<!ENTITY urlbar.accesskey "d">
<!--
Comment duplicated from browser-sets.inc:
Search Command Key Logic works like this:
Unix: Ctrl+J (0.8, 0.9 support)
Ctrl+K (cross platform binding)
Mac: Ctrl+K (cross platform binding)
Win: Ctrl+K (cross platform binding)
Ctrl+E (IE compat)
We support Ctrl+K on all platforms now and advertise it in the menu since it is
our standard - it is a "safe" choice since it is near no harmful keys like "W" as
"E" is. People mourning the loss of Ctrl+K for emacs compat can switch their GTK
system setting to use emacs emulation, and we should respect it. Focus-Search-Box
is a fundamental keybinding and we are maintaining a XP binding so that it is easy
for people to switch to Linux.
Do *not* tamper with these values without talking to ben@mozilla.org
-->
<!ENTITY searchFocus.commandkey "k">
<!ENTITY searchFocusUnix.commandkey "j">
<!ENTITY searchFocus.commandkey2 "e">
<!ENTITY openLinkCmd.label "Open Link in New Window">
<!ENTITY openLinkCmd.accesskey "W">