r=mkaply, a=brendan
Grab the windows platformBindings files and use them for OS/2
This commit is contained in:
mkaply%us.ibm.com 2000-09-18 21:50:06 +00:00
parent b54616856a
commit 08bda0f0f4
8 changed files with 198 additions and 364 deletions

View File

@ -1,36 +1,44 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformBrowserBindings.xul -->
<!-- ps2 version of platformBrowserBindings.xul -->
<keybinding id="platformBrowserBindings"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="globalKeySet" xulkey="alt">
<!-- xul key for OS/2 -->
<keyset id="globalKeySet" xulkey="ctrl">
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
<!-- other keybindings for cut/copy/paste -->
<key id="os2AlternativeCutKey" keycode="VK_DELETE" shift="true" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="emCopyKey" key="c" control="true" shift="false"
<key id="os2AlternateCopy2Key" keycode="VK_DELETE" shift="false" control="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="emPasteKey" key="v" control="true" shift="false"
<key id="os2AlternativeCopyKey" keycode="VK_INSERT" control="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="os2AlternativePasteKey" keycode="VK_INSERT" shift="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="emUndoKey" key="z" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="emRedoKey" key="r" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="key_homectrlshift" keycode="VK_HOME" shift="true" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectTop');
controller.doCommand('cmd_selectTop');"/>
<key id="key_endctrlshift" keycode="VK_END" shift="true" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectBottom');
controller.doCommand('cmd_selectBottom');"/>
</keyset>
<!-- End OS/2-specific keybindings -->
</keybinding>

View File

@ -1,97 +1,71 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformEditorBindings.xul -->
<!-- os2 version of platformEditorBindings.xul -->
<keybinding id="platformEditorBindings"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- xul key for OS/2 -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- emacs delete keys -->
<key id="emDelCharBWkb" key="h" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharBackward');
controller.doCommand('cmd_deleteCharBackward');"/>
<key id="emDelCharFWkb" key="d" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharForward');
controller.doCommand('cmd_deleteCharForward');"/>
<key id="emDelWordBWkb" key="w" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteWordBackward');
controller.doCommand('cmd_deleteWordBackward');"/>
<key id="emKillToEndkb" key="k" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToEndOfLine');
controller.doCommand('cmd_deleteToEndOfLine');"/>
<key id="emKillToBegkb" key="u" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToBeginningOfLine');
controller.doCommand('cmd_deleteToBeginningOfLine');"/>
<!-- emacs motion keys: these use the selection controller API -->
<key id="emBeginLinekb" key="a" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="emEndLinekb" key="e" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
<key id="emCharPrevkb" key="b" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
controller.doCommand('cmd_charPrevious');"/>
<key id="emCharNextkb" key="f" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charNext');
controller.doCommand('cmd_charNext');"/>
<key id="emPrevLinekb" key="p" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_linePrevious');
controller.doCommand('cmd_linePrevious');"/>
<key id="emNextLinekb" key="n" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_lineNext');
controller.doCommand('cmd_lineNext');"/>
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
<!-- alternate cut/copy/paste keys for OS/2 -->
<key id="os2AlternateCutKey" keycode="VK_DELETE" shift="true" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="emCopyKey" key="c" control="true" shift="false"
<key id="os2AlternateCopy2Key" keycode="VK_DELETE" shift="false" control="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="emPasteKey" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="emUndoKey" key="z" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="emRedoKey" key="r" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="winAlternateCutKey" keycode="VK_DELETE" shift="true" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="winAlternateCopyKey" keycode="VK_INSERT" control="true" shift="false" alt="false"
<key id="os2AlternateCopyKey" keycode="VK_INSERT" control="true" shift="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="winAlternatePasteKey" keycode="VK_INSERT" shift="true" control="false" alt="false"
<key id="os2AlternatePasteKey" keycode="VK_INSERT" shift="true" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="key_leftcontrol" keycode="VK_LEFT" shift="false" xulkey="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_wordPrevious');
controller.doCommand('cmd_wordPrevious');"/>
<key id="key_rightcontrol" keycode="VK_RIGHT" shift="false" xulkey="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_wordNext');
controller.doCommand('cmd_wordNext');"/>
<key id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" xulkey="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordPrevious');
controller.doCommand('cmd_selectWordPrevious');"/>
<key id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" xulkey="true" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordNext');
controller.doCommand('cmd_selectWordNext');"/>
<key id="key_homectrlshift" keycode="VK_HOME" shift="true" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectTop');
controller.doCommand('cmd_selectTop');"/>
<key id="key_endctrlshift" keycode="VK_END" shift="true" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectBottom');
controller.doCommand('cmd_selectBottom');"/>
<key id="key_homectrl" keycode="VK_HOME" shift="false" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_moveTop');
controller.doCommand('cmd_moveTop');"/>
<key id="key_endctrl" keycode="VK_END" shift="false" control="true" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_moveBottom');
controller.doCommand('cmd_moveBottom');"/>
</keyset>
<!-- End OS/2-specific keybindings -->
</keybinding>

View File

@ -1,28 +1,30 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformGlobalOverlay.xul -->
<!-- os2 version of platformGlobalOverlay.xul -->
<!DOCTYPE os2 SYSTEM "chrome://global/locale/platformGlobalOverlay.dtd">
<!DOCTYPE window SYSTEM "chrome://global/locale/platformGlobalOverlay.dtd">
<overlay id="platformGlobalOverlay"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- close -->
<menuitem id="menu_close" value="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" observes="cmd_close"/>
<key id="key_close" xulkey="true" key="&closeCmd.key;" observes="cmd_close"/>
<!-- quit -->
<menupopup id="menu_FilePopup">
<menuitem value="&quitApplicationCmd.label;" key="key_quit" accesskey="&quitApplicationCmd.accesskey;" observes="cmd_quit"/>
</menupopup>
<key id="key_quit" xulkey="true" key="&quitApplicationCmd.key;" observes="cmd_quit"/>
<broadcaster id="cmd_quit" oncommand="goQuitApplication()"/>
<!-- close -->
<menuitem id="menu_close" value="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" observes="cmd_close"/>
<key id="key_close" xulkey="true" key="&closeCmd.key;" observes="cmd_close"/>
<!-- Edit Menu -->
<menuitem id="menu_redo" value="&redoCmd.label;" key="key_redo" accesskey="&redoCmd.accesskey;" observes="cmd_redo"/>
<key id="key_redo" xulkey="true" shift="true" key="&redoCmd.key;" observes="cmd_redo"/>
<!-- quit -->
<menupopup id="menu_FilePopup">
<menuitem value="&quitApplicationCmd.label;" key="key_quit" accesskey="&quitApplicationCmd.accesskey;" observes="cmd_quit"/>
</menupopup>
<key id="key_quit" xulkey="true" key="&quitApplicationCmd.key;" observes="cmd_quit"/>
<broadcaster id="cmd_quit" oncommand="goQuitApplication()"/>
<!-- Edit Menu -->
<menuitem id="menu_redo" value="&redoCmd.label;" key="key_redo" accesskey="&redoCmd.accesskey;" observes="cmd_redo"/>
<key id="key_redo" xulkey="true" key="&redoCmd.key;" observes="cmd_redo"/>
<!-- Delete Key -->
<key id="key_delete" keycode="VK_DELETE" observes="cmd_delete"/>
<key id="key_delete" keycode="VK_DELETE" shift="false" control="false" meta="false" alt="false" observes="cmd_delete"/>
</overlay>

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformDialogOverlay.xul -->
<!-- os2 version of platformDialogOverlay.xul -->
<!DOCTYPE window SYSTEM "chrome://global/locale/platformDialogOverlay.dtd">
@ -9,24 +9,22 @@
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<box id="okCancelButtons" align="horizontal">
<box id="okCancelButtons">
<spring flex="1"/>
<button class="right dialog" id="ok" value="&okButton.label;" default="true" onclick="doOKButton()"/>
<button class="dialog" id="Button2" value="&cancelButton.label;" collapsed="true" onclick="doButton2()"/>
<button class="dialog" id="Button3" value="&cancelButton.label;" collapsed="true" onclick="doButton3()"/>
<button class="dialog" id="cancel" value="&cancelButton.label;" onclick="doCancelButton()"/>
<button class="right exit-dialog" id="ok" value="&okButton.label;" default="true" onclick="doOKButton()"/>
<button class="exit-dialog" id="Button2" value="&cancelButton.label;" collapsed="true" onclick="doButton2()"/>
<button class="exit-dialog" id="Button3" value="&cancelButton.label;" collapsed="true" onclick="doButton3()"/>
<button class="exit-dialog" id="cancel" value="&cancelButton.label;" onclick="doCancelButton()"/>
<spring flex="1"/>
</box>
<box id="okCancelButtonsRight" align="horizontal">
<spring flex="1"/>
<button class="right dialog" id="ok" value="&okButton.label;" default="true" onclick="doOKButton()"/>
<button class="dialog" id="Button2" value="&cancelButton.label;" collapsed="true" onclick="doButton2()"/>
<button class="dialog" id="Button3" value="&cancelButton.label;" collapsed="true" onclick="doButton3()"/>
<button class="dialog" id="cancel" value="&cancelButton.label;" onclick="doCancelButton()"/>
<box id="okCancelButtonsRight" halign="right">
<spring flex="1"/>
<button class="right exit-dialog" id="ok" value="&okButton.label;" default="true" onclick="doOKButton()"/>
<button class="exit-dialog" id="Button2" value="&cancelButton.label;" collapsed="true" onclick="doButton2()"/>
<button class="exit-dialog" id="Button3" value="&cancelButton.label;" collapsed="true" onclick="doButton3()"/>
<button class="exit-dialog" id="cancel" value="&cancelButton.label;" onclick="doCancelButton()"/>
</box>
<keyset id="keyset">
<key keycode="VK_ENTER" oncommand="doOKButton()"/>

View File

@ -1,26 +1,28 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformGlobalOverlay.xul -->
<!-- os2 version of platformGlobalOverlay.xul -->
<!DOCTYPE window SYSTEM "chrome://global/locale/platformGlobalOverlay.dtd">
<overlay id="platformGlobalOverlay"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- close -->
<menuitem id="menu_close" value="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" observes="cmd_close"/>
<key id="key_close" xulkey="true" key="&closeCmd.key;" observes="cmd_close"/>
<!-- quit -->
<menupopup id="menu_FilePopup">
<menuitem value="&quitApplicationCmd.label;" key="key_quit" accesskey="&quitApplicationCmd.accesskey;" observes="cmd_quit"/>
</menupopup>
<key id="key_quit" xulkey="true" key="&quitApplicationCmd.key;" observes="cmd_quit"/>
<broadcaster id="cmd_quit" oncommand="goQuitApplication()"/>
<!-- close -->
<menuitem id="menu_close" value="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" observes="cmd_close"/>
<key id="key_close" xulkey="true" key="&closeCmd.key;" observes="cmd_close"/>
<!-- Edit Menu -->
<menuitem id="menu_redo" value="&redoCmd.label;" key="key_redo" accesskey="&redoCmd.accesskey;" observes="cmd_redo"/>
<key id="key_redo" xulkey="true" shift="true" key="&redoCmd.key;" observes="cmd_redo"/>
<!-- quit -->
<menupopup id="menu_FilePopup">
<menuitem value="&quitApplicationCmd.label;" key="key_quit" accesskey="&quitApplicationCmd.accesskey;" observes="cmd_quit"/>
</menupopup>
<key id="key_quit" xulkey="true" key="&quitApplicationCmd.key;" observes="cmd_quit"/>
<broadcaster id="cmd_quit" oncommand="goQuitApplication()"/>
<!-- Edit Menu -->
<menuitem id="menu_redo" value="&redoCmd.label;" key="key_redo" accesskey="&redoCmd.accesskey;" observes="cmd_redo"/>
<key id="key_redo" xulkey="true" key="&redoCmd.key;" observes="cmd_redo"/>
<!-- Delete Key -->
<key id="key_delete" keycode="VK_DELETE" observes="cmd_delete"/>

View File

@ -6,130 +6,87 @@
<binding id="inputFields" extends="chrome://global/content/htmlBindings.xml#inputFieldsBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler event="keypress" id="key_home" key="a" modifiers="control"
command="cmd_beginLine"/>
<handler event="keypress" id="key_end" key="e" modifiers="control"
command="cmd_endLine"/>
<handler event="keypress" id="key_left" key="b" modifiers="control"
<handler event="keypress" id="key_up" keycode="VK_UP"
command="cmd_charPrevious"/>
<handler event="keypress" id="key_right" key="f" modifiers="control"
<handler event="keypress" id="key_down" keycode="VK_DOWN"
command="cmd_charNext"/>
<handler event="keypress" id="key_delback" key="h" modifiers="control"
command="cmd_deleteCharBackward"/>
<handler event="keypress" id="key_delforw" key="d" modifiers="control"
command="cmd_deleteCharForward"/>
<handler event="keypress" id="key_delwback" key="w" modifiers="control"
command="cmd_deleteWordBackward"/>
<handler event="keypress" id="key_del_bol" key="u" modifiers="control"
command="cmd_deleteToBeginningOfLine"/>
<handler event="keypress" id="key_del_eol" key="k" modifiers="control"
command="cmd_deleteToEndOfLine"/>
<handler event="keypress" id="key_leftshift" keycode="VK_UP" modifiers="shift"
command="cmd_selectCharPrevious"/>
<handler event="keypress" id="key_rightshift" keycode="VK_DOWN" modifiers="shift"
command="cmd_selectCharNext"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler event="keypress" id="key_wincopy" key="c" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_wincut" key="x" modifiers="control"
command="cmd_cut"/>
<handler event="keypress" id="key_winundo" key="z" modifiers="control"
command="cmd_undo"/>
<handler event="keypress" id="key_winredo" key="r" modifiers="control"
command="cmd_redo"/>
<handler event="keypress" id="key_altwincut" keycode="VK_DELETE" modifiers="shift"
command="cmd_cut"/>
<handler event="keypress" id="key_altwincopy" keycode="VK_INSERT" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_altwinpaste" keycode="VK_INSERT" modifiers="shift"
command="cmd_paste"/>
<!-- navigating by word keys -->
<handler event="keypress" id="key_home" keycode="VK_HOME"
<handler event="keypress" id="key_home" keycode="VK_HOME"
command="cmd_beginLine"/>
<handler event="keypress" id="key_end" keycode="VK_END"
<handler event="keypress" id="key_end" keycode="VK_END"
command="cmd_endLine"/>
<handler event="keypress" id="key_homeshift" keycode="VK_HOME" modifiers="shift"
<handler event="keypress" id="key_homeshift" keycode="VK_HOME" modifiers="shift"
command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_endshift" keycode="VK_END" modifiers="shift"
<handler event="keypress" id="key_endshift" keycode="VK_END" modifiers="shift"
command="cmd_selectEndLine"/>
<handler event="keypress" id="key_leftcontrol" keycode="VK_LEFT" modifiers="control"
<handler event="keypress" id="key_homecontrolshift" keycode="VK_HOME" shift="true" alt="false" control="true"
command="cmd_selectTop"/>
<handler event="keypress" id="key_endcontrolshift" keycode="VK_END" shift="true" alt="false" control="true"
command="cmd_selectBottom"/>
<handler event="keypress" id="key_homecontrol" keycode="VK_HOME" shift="false" alt="false" control="true"
command="cmd_moveTop"/>
<handler event="keypress" id="key_endcontrol" keycode="VK_END" shift="false" alt="false" control="true"
command="cmd_moveBottom"/>
<handler event="keypress" id="key_leftcontrol" keycode="VK_LEFT" modifiers="control"
command="cmd_wordPrevious"/>
<handler event="keypress" id="key_rightcontrol" keycode="VK_RIGHT" modifiers="control"
<handler event="keypress" id="key_rightcontrol" keycode="VK_RIGHT" modifiers="control"
command="cmd_wordNext"/>
<handler event="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" modifiers="shift,control"
<handler event="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" modifiers="shift,control"
command="cmd_selectWordPrevious"/>
<handler event="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" modifiers="shift,control"
<handler event="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" modifiers="shift,control"
command="cmd_selectWordNext"/>
<handler event="keypress" id="key_redo" key="y" modifiers="primary"
<handler event="keypress" id="key_redo" key="y" modifiers="accel"
command="cmd_redo"/>
<handler event="keypress" id="key_altwincut" keycode="VK_DELETE" modifiers="shift"
command="cmd_cut"/>
<handler event="keypress" id="key_altwincopy" keycode="VK_INSERT" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_altwinpaste" keycode="VK_INSERT" modifiers="shift"
command="cmd_paste"/>
</handlers>
</binding>
<binding id="textAreas" extends="chrome://global/content/htmlBindings.xml#textAreasBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler event="keypress" id="key_home" key="a" modifiers="control"
<handler event="keypress" id="key_home" keycode="VK_HOME"
command="cmd_beginLine"/>
<handler event="keypress" id="key_end" key="e" modifiers="control"
<handler event="keypress" id="key_end" keycode="VK_END"
command="cmd_endLine"/>
<handler event="keypress" id="key_left" key="b" modifiers="control"
command="cmd_charPrevious"/>
<handler event="keypress" id="key_right" key="f" modifiers="control"
command="cmd_charNext"/>
<handler event="keypress" id="key_delback" key="h" modifiers="control"
command="cmd_deleteCharBackward"/>
<handler event="keypress" id="key_delforw" key="d" modifiers="control"
command="cmd_deleteCharForward"/>
<handler event="keypress" id="key_delwback" key="w" modifiers="control"
command="cmd_deleteWordBackward"/>
<handler event="keypress" id="key_del_bol" key="u" modifiers="control"
command="cmd_deleteToBeginningOfLine"/>
<handler event="keypress" id="key_del_eol" key="k" modifiers="control"
command="cmd_deleteToEndOfLine"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler event="keypress" id="key_wincopy" key="c" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_wincut" key="x" modifiers="control"
command="cmd_cut"/>
<handler event="keypress" id="key_winundo" key="z" modifiers="control"
command="cmd_undo"/>
<handler event="keypress" id="key_winredo" key="r" modifiers="control"
command="cmd_redo"/>
<handler event="keypress" id="key_altwincut" keycode="VK_DELETE" modifiers="shift"
command="cmd_cut"/>
<handler event="keypress" id="key_altwincopy" keycode="VK_INSERT" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_altwinpaste" keycode="VK_INSERT" modifiers="shift"
command="cmd_paste"/>
<!-- Emacsish multi-line motion and delete keys -->
<handler event="keypress" id="key_linedown" key="n" modifiers="control"
command="cmd_lineNext"/>
<handler event="keypress" id="key_lineup" key="p" modifiers="control"
command="cmd_linePrevious"/>
<!-- handle home/end/arrow keys and redo -->
<handler event="keypress" id="key_home" keycode="VK_HOME"
command="cmd_beginLine"/>
<handler event="keypress" id="key_end" keycode="VK_END"
command="cmd_endLine"/>
<handler event="keypress" id="key_homeshift" keycode="VK_HOME" modifiers="shift"
<handler event="keypress" id="key_homeshift" keycode="VK_HOME" modifiers="shift"
command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_endshift" keycode="VK_END" modifiers="shift"
<handler event="keypress" id="key_endshift" keycode="VK_END" modifiers="shift"
command="cmd_selectEndLine"/>
<handler event="keypress" id="key_leftcontrol" keycode="VK_LEFT" modifiers="control"
<handler event="keypress" id="key_homecontrolshift" keycode="VK_HOME" shift="true" alt="false" control="true"
command="cmd_selectTop"/>
<handler event="keypress" id="key_endcontrolshift" keycode="VK_END" shift="true" alt="false" control="true"
command="cmd_selectBottom"/>
<handler event="keypress" id="key_homecontrol" keycode="VK_HOME" shift="false" alt="false" control="true"
command="cmd_moveTop"/>
<handler event="keypress" id="key_endcontrol" keycode="VK_END" shift="false" alt="false" control="true"
command="cmd_moveBottom"/>
<handler event="keypress" id="key_leftcontrol" keycode="VK_LEFT" modifiers="control"
command="cmd_wordPrevious"/>
<handler event="keypress" id="key_rightcontrol" keycode="VK_RIGHT" modifiers="control"
<handler event="keypress" id="key_rightcontrol" keycode="VK_RIGHT" modifiers="control"
command="cmd_wordNext"/>
<handler event="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" modifiers="shift,control"
<handler event="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" modifiers="shift,control"
command="cmd_selectWordPrevious"/>
<handler event="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" modifiers="shift,control"
<handler event="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" modifiers="shift,control"
command="cmd_selectWordNext"/>
<handler event="keypress" id="key_redo" key="y" modifiers="primary"
<handler event="keypress" id="key_redo" key="y" modifiers="accel"
command="cmd_redo"/>
</handlers>
<handler event="keypress" id="key_altwincut" keycode="VK_DELETE" modifiers="shift"
command="cmd_cut"/>
<handler event="keypress" id="key_altwincopy" keycode="VK_INSERT" modifiers="control"
command="cmd_copy"/>
<handler event="keypress" id="key_altwinpaste" keycode="VK_INSERT" modifiers="shift"
command="cmd_paste"/>
</handlers>
</binding>
</bindings>

View File

@ -1,78 +1,39 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformInputBindings.xul -->
<!-- os2 version of platformInputBindings.xul -->
<keybinding id="platformInputBindings"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- xul key for OS/2 -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- emacs delete keys -->
<key id="emDelCharBWkb" key="h" control="true" shift="false"
<!-- No os2-specific input bindings known at this time -->
<!-- and make up and down arrows do those functions -->
<key id="key_up" keycode="VK_UP" shift="false" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharBackward');
controller.doCommand('cmd_deleteCharBackward');"/>
<key id="emDelCharFWkb" key="d" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharForward');
controller.doCommand('cmd_deleteCharForward');"/>
<key id="emDelWordBWkb" key="w" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteWordBackward');
controller.doCommand('cmd_deleteWordBackward');"/>
<key id="emKillToBegkb" key="u" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToBeginningOfLine');
controller.doCommand('cmd_deleteToBeginningOfLine');"/>
<key id="emKillToEndkb" key="k" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToEndOfLine');
controller.doCommand('cmd_deleteToEndOfLine');"/>
<!-- emacs motion keys: these use the selection controller API -->
<key id="emBeginLinekb" key="a" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="emEndLinekb" key="e" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
<key id="emCharPrevkb" key="b" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
var controller =
document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
controller.doCommand('cmd_charPrevious');"/>
<key id="emCharNextkb" key="f" control="true" shift="false"
<key id="key_down" keycode="VK_DOWN" shift="false" control="false" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_charNext');
controller.doCommand('cmd_charNext');"/>
<key id="key_up" keycode="VK_UP" shift="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charNext');
controller.doCommand('cmd_charNext');"/>
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="emCopyKey" key="c" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="emPasteKey" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="emUndoKey" key="z" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="emRedoKey" key="r" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectCharPrevious');
controller.doCommand('cmd_selectCharPrevious');"/>
<key id="key_down" keycode="VK_DOWN" shift="true"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectCharNext');
controller.doCommand('cmd_selectCharNext');"/>
</keyset>
<!-- OS/2 Unix-specific keybindings -->
<!-- End OS/2-specific keybindings -->
</keybinding>

View File

@ -1,82 +1,14 @@
<?xml version="1.0"?>
<!-- OS/2 version of platformTextAreaBindings.xul -->
<!-- os2 version of platformTextAreaBindings.xul -->
<keybinding id="platformTextAreaBindings"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- xul key for OS/2 -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- emacs delete keys -->
<key id="emDelCharBWkb" key="h" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharBackward');
controller.doCommand('cmd_deleteCharBackward');"/>
<key id="emDelCharFWkb" key="d" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteCharForward');
controller.doCommand('cmd_deleteCharForward');"/>
<key id="emDelWordBWkb" key="w" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteWordBackward');
controller.doCommand('cmd_deleteWordBackward');"/>
<key id="emKillToBegkb" key="u" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToBeginningOfLine');
controller.doCommand('cmd_deleteToBeginningOfLine');"/>
<key id="emKillToEndkb" key="k" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_deleteToEndOfLine');
controller.doCommand('cmd_deleteToEndOfLine');"/>
<!-- emacs motion keys: these use the selection controller API -->
<key id="emBeginLinekb" key="a" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="emEndLinekb" key="e" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
<key id="emCharPrevkb" key="b" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
controller.doCommand('cmd_charPrevious');"/>
<key id="emCharNextkb" key="f" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_charNext');
controller.doCommand('cmd_charNext');"/>
<key id="emPrevLinekb" key="p" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_linePrevious');
controller.doCommand('cmd_linePrevious');"/>
<key id="emNextLinekb" key="n" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_lineNext');
controller.doCommand('cmd_lineNext');"/>
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="emCopyKey" key="c" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="emPasteKey" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="emUndoKey" key="z" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="emRedoKey" key="r" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<!-- No os2-specific text area bindings known at this time -->
</keyset>