зеркало из https://github.com/mozilla/gecko-dev.git
Bug 426501 ZoomIn/ZoomOut/ZoomReset should have alternative accel keys for localized builds. XUL part: r+ui-r=mconnor, a1.9=beltzner, XBL part: r=enndeakin, sr=neil, a1.9=dsicore
This commit is contained in:
Родитель
cca6b04a8c
Коммит
72f6e5a72f
|
@ -294,9 +294,12 @@
|
|||
command="viewHistorySidebar"/>
|
||||
|
||||
<key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
||||
<key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/>
|
||||
<key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/>
|
||||
<key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/>
|
||||
|
||||
<key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
|
||||
|
||||
|
|
|
@ -220,11 +220,13 @@ BuildHandlerChain(nsIContent* aContent, nsXBLPrototypeHandler** aResult)
|
|||
// Check whether the key element has empty value at key/char attribute.
|
||||
// Such element is used by localizers for alternative shortcut key
|
||||
// definition on the locale. See bug 426501.
|
||||
nsAutoString valKey, valChar;
|
||||
nsAutoString valKey, valCharCode, valKeyCode;
|
||||
PRBool attrExists =
|
||||
key->GetAttr(kNameSpaceID_None, nsGkAtoms::key, valKey) ||
|
||||
key->GetAttr(kNameSpaceID_None, nsGkAtoms::charcode, valChar);
|
||||
if (attrExists && valKey.IsEmpty() && valChar.IsEmpty())
|
||||
key->GetAttr(kNameSpaceID_None, nsGkAtoms::charcode, valCharCode) ||
|
||||
key->GetAttr(kNameSpaceID_None, nsGkAtoms::keycode, valKeyCode);
|
||||
if (attrExists &&
|
||||
valKey.IsEmpty() && valCharCode.IsEmpty() && valKeyCode.IsEmpty())
|
||||
continue;
|
||||
|
||||
nsXBLPrototypeHandler* handler = new nsXBLPrototypeHandler(key);
|
||||
|
|
|
@ -133,10 +133,16 @@
|
|||
command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_fullZoomEnlarge2" key="&fullZoomEnlargeCmd.commandkey2;"
|
||||
command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_fullZoomEnlarge3" key="&fullZoomEnlargeCmd.commandkey3;"
|
||||
command="cmd_fullZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;"
|
||||
command="cmd_fullZoomReduce" modifiers="accel"/>
|
||||
<key id="key_fullZoomReduce2" key="&fullZoomReduceCmd.commandkey2;"
|
||||
command="cmd_fullZoomReduce" modifiers="accel"/>
|
||||
<key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;"
|
||||
command="cmd_fullZoomReset" modifiers="accel"/>
|
||||
<key id="key_fullZoomReset2" key="&fullZoomResetCmd.commandkey2;"
|
||||
command="cmd_fullZoomReset" modifiers="accel"/>
|
||||
<key id="key_focusSearch" key="&helpSearch.commandkey;"
|
||||
oncommand="focusSearch()" modifiers="accel"/>
|
||||
|
||||
|
|
|
@ -105,8 +105,11 @@
|
|||
|
||||
<key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomEnlarge3" key="&textEnlarge.commandkey3;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomReduce" key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
|
||||
<key id="key_textZoomReduce2" key="&textReduce.commandkey2;" command="cmd_textZoomReduce" modifiers="accel"/>
|
||||
<key id="key_textZoomReset" key="&textReset.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
|
||||
<key id="key_textZoomReset2" key="&textReset.commandkey2;" command="cmd_textZoomReset" modifiers="accel"/>
|
||||
</keyset>
|
||||
|
||||
<popup id="viewSourceContextMenu">
|
||||
|
|
|
@ -106,8 +106,11 @@
|
|||
|
||||
<key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomEnlarge3" key="&textEnlarge.commandkey3;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key id="key_textZoomReduce" key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
|
||||
<key id="key_textZoomReduce2" key="&textReduce.commandkey2;" command="cmd_textZoomReduce" modifiers="accel"/>
|
||||
<key id="key_textZoomReset" key="&textReset.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
|
||||
<key id="key_textZoomReset2" key="&textReset.commandkey2;" command="cmd_textZoomReset" modifiers="accel"/>
|
||||
|
||||
<key id="key_reload" key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel"/>
|
||||
<key key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel,shift"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче