mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
adding more = false lines to xul files and the XBL. bugs=25462,25730 hyatt
This commit is contained in:
parent
a271589189
commit
587612f008
@ -16,7 +16,7 @@
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
|
||||
controller.doCommand('cmd_scrollPageDown');"/>
|
||||
<key id="space" key=" " shift="false" control="false"
|
||||
<key id="space" key=" " shift="false" control="false" alt="false"
|
||||
onkeypress="
|
||||
var v = document.commandDispatcher.focusedElement;
|
||||
|
||||
|
@ -9,11 +9,11 @@
|
||||
<keyset id="editorKeySet" xulkey="meta">
|
||||
|
||||
<!-- Mac bindings for home and end -->
|
||||
<key id="macHomekb" keycode="VK_HOME" shift="false"
|
||||
<key id="macHomekb" keycode="VK_HOME" shift="false" alt="false" control="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollTop');
|
||||
controller.doCommand('cmd_scrollTop');"/>
|
||||
<key id="macEndkb" keycode="VK_END" shift="false"
|
||||
<key id="macEndkb" keycode="VK_END" shift="false" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
|
||||
controller.doCommand('cmd_scrollBottom');"/>
|
||||
|
@ -16,11 +16,11 @@
|
||||
controller.doCommand('cmd_redo');"/>
|
||||
|
||||
<!-- Mac bindings for home and end -->
|
||||
<key id="macHomekb" keycode="VK_HOME" control="false" shift="false"
|
||||
<key id="macHomekb" keycode="VK_HOME" control="false" shift="false" alt="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollTop');
|
||||
controller.doCommand('cmd_scrollTop');"/>
|
||||
<key id="macEndkb" keycode="VK_END" control="false" shift="false"
|
||||
<key id="macEndkb" keycode="VK_END" control="false" shift="false" alt="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
|
||||
controller.doCommand('cmd_scrollBottom');"/>
|
||||
|
@ -9,33 +9,33 @@
|
||||
<keyset id="editorKeySet" xulkey="meta">
|
||||
|
||||
<!-- replace the Windows/Unix xul-Y Redo binding with xul-shift-Z -->
|
||||
<key id="noWinRedo" key="y" xulkey="true" shift="false" cancel="true"/>
|
||||
<key id="macRedokb" key="Z" xulkey="true" shift="true"
|
||||
<key id="noWinRedo" key="y" xulkey="true" shift="false" control="false" alt="false" cancel="true"/>
|
||||
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
|
||||
controller.doCommand('cmd_redo');"/>
|
||||
|
||||
<!-- In single-line text fields, ignore the xp bindings for home and end -->
|
||||
<key id="macHomekb" keycode="VK_HOME" shift="false" cancel="true" />
|
||||
<key id="macEndkb" keycode="VK_END" shift="false" cancel="true" />
|
||||
<key id="macHomekb" keycode="VK_HOME" shift="false" control="false" alt="false" cancel="true" />
|
||||
<key id="macEndkb" keycode="VK_END" shift="false" control="false" alt="false" cancel="true" />
|
||||
|
||||
<!-- and make up and down arrows do those functions -->
|
||||
<key id="key_up" keycode="VK_UP" shift="false"
|
||||
<key id="key_up" keycode="VK_UP" control="false" alt="false" shift="false"
|
||||
onkeypress="
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_beginLine');
|
||||
controller.doCommand('cmd_beginLine');"/>
|
||||
<key id="key_down" keycode="VK_DOWN" shift="false"
|
||||
<key id="key_down" keycode="VK_DOWN" shift="false" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_endLine');
|
||||
controller.doCommand('cmd_endLine');"/>
|
||||
<key id="key_up" keycode="VK_UP" shift="true"
|
||||
<key id="key_up" keycode="VK_UP" shift="true" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_beginLine');
|
||||
controller.doCommand('cmd_selectBeginLine');"/>
|
||||
<key id="key_down" keycode="VK_DOWN" shift="true"
|
||||
<key id="key_down" keycode="VK_DOWN" shift="true" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_endLine');
|
||||
|
@ -10,17 +10,17 @@
|
||||
|
||||
<!-- replace the Windows/Unix xul-Y Redo binding with xul-shift-Z -->
|
||||
<key id="noWinRedo" key="y" xulkey="true" shift="false" cancel="true"/>
|
||||
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false"
|
||||
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false" alt="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
|
||||
controller.doCommand('cmd_redo');"/>
|
||||
|
||||
<!-- Mac bindings for home and end -->
|
||||
<key id="macHomekb" keycode="VK_HOME" control="false" shift="false"
|
||||
<key id="macHomekb" keycode="VK_HOME" control="false" alt="false" shift="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollTop');
|
||||
controller.doCommand('cmd_scrollTop');"/>
|
||||
<key id="macEndkb" keycode="VK_END" control="false" shift="false"
|
||||
<key id="macEndkb" keycode="VK_END" control="false" alt="false" shift="false"
|
||||
onkeypress="
|
||||
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
|
||||
controller.doCommand('cmd_scrollBottom');"/>
|
||||
|
@ -7,35 +7,43 @@
|
||||
<binding name="inputFieldsBase">
|
||||
<handlers>
|
||||
|
||||
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false"
|
||||
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
|
||||
command="cmd_beginLine"/>
|
||||
<handler type="keypress" id="key_end" keycode="VK_END" alt="false"
|
||||
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
|
||||
command="cmd_endLine"/>
|
||||
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false"
|
||||
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false" shift="false" control="false"
|
||||
command="cmd_charPrevious"/>
|
||||
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false"
|
||||
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false" shift="false" control="false"
|
||||
command="cmd_charNext"/>
|
||||
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false"
|
||||
<handler type="keypress" id="key_left" keycode="VK_UP" alt="false" shift="false" control="false"
|
||||
command="cmd_charPrevious"/>
|
||||
<handler type="keypress" id="key_right" keycode="VK_DOWN" alt="false" shift="false" control="false"
|
||||
command="cmd_charNext"/>
|
||||
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false" shift="false" control="false"
|
||||
command="cmd_scrollPageUp"/>
|
||||
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false"
|
||||
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false" shift="false" control="false"
|
||||
command="cmd_scrollPageDown"/>
|
||||
|
||||
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
|
||||
command="cmd_selectBeginLine"/>
|
||||
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
|
||||
command="cmd_selectEndLine"/>
|
||||
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharPrevious"/>
|
||||
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharNext"/>
|
||||
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false"
|
||||
<handler type="keypress" id="key_leftshift" keycode="VK_UP" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharPrevious"/>
|
||||
<handler type="keypress" id="key_rightshift" keycode="VK_DOWN" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharNext"/>
|
||||
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
|
||||
command="cmd_wordPrevious"/>
|
||||
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false"
|
||||
command="cmd_wordNext"/>
|
||||
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
|
||||
command="cmd_wordPrevious"/>
|
||||
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
|
||||
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
|
||||
command="cmd_wordNext"/>
|
||||
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
|
||||
command="cmd_selectWordPrevious"/>
|
||||
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
|
||||
command="cmd_selectWordNext"/>
|
||||
<handler type="keypress" id="key_undo" key="z" primary="true"
|
||||
command="cmd_undo"/>
|
||||
<handler type="keypress" id="key_redo" key="y" primary="true"
|
||||
@ -47,41 +55,41 @@
|
||||
<binding name="textAreasBase">
|
||||
<handlers>
|
||||
|
||||
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false"
|
||||
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
|
||||
command="cmd_beginLine"/>
|
||||
<handler type="keypress" id="key_end" keycode="VK_END" alt="false"
|
||||
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
|
||||
command="cmd_endLine"/>
|
||||
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false"
|
||||
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false" shift="false" control="false"
|
||||
command="cmd_charPrevious"/>
|
||||
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false"
|
||||
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false" shift="false" control="false"
|
||||
command="cmd_charNext"/>
|
||||
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
|
||||
command="cmd_selectBeginLine"/>
|
||||
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
|
||||
command="cmd_selectEndLine"/>
|
||||
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharPrevious"/>
|
||||
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false" control="false"
|
||||
command="cmd_selectCharNext"/>
|
||||
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false"
|
||||
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
|
||||
command="cmd_wordPrevious"/>
|
||||
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false"
|
||||
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
|
||||
command="cmd_wordNext"/>
|
||||
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
|
||||
command="cmd_wordPrevious"/>
|
||||
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
|
||||
command="cmd_wordNext"/>
|
||||
<handler type="keypress" id="key_up" keycode="VK_UP" alt="false"
|
||||
<handler type="keypress" id="key_up" keycode="VK_UP" alt="false" shift="false" control="false"
|
||||
command="cmd_linePrevious"/>
|
||||
<handler type="keypress" id="key_down" keycode="VK_DOWN" alt="false"
|
||||
<handler type="keypress" id="key_down" keycode="VK_DOWN" alt="false" shift="false" control="false"
|
||||
command="cmd_lineNext"/>
|
||||
<handler type="keypress" id="key_up_shift" keycode="VK_UP" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_up_shift" keycode="VK_UP" shift="true" alt="false" control="false"
|
||||
command="cmd_selectLinePrevious"/>
|
||||
<handler type="keypress" id="key_down_shift" keycode="VK_DOWN" shift="true" alt="false"
|
||||
<handler type="keypress" id="key_down_shift" keycode="VK_DOWN" shift="true" alt="false" control="false"
|
||||
command="cmd_selectLineNext"/>
|
||||
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false"
|
||||
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false" shift="false" control="false"
|
||||
command="cmd_scrollPageUp"/>
|
||||
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false"
|
||||
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false" shift="false" control="false"
|
||||
command="cmd_scrollPageDown"/>
|
||||
<handler type="keypress" id="key_undo" key="z" primary="true"
|
||||
command="cmd_undo"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user