saari pointed out i forgot to check in these files last night. textarea needs bindings also r=saari a=pdt+ team

This commit is contained in:
mjudge%netscape.com 1999-12-15 23:23:40 +00:00
parent d13a83fb9f
commit f0f09bb01d
4 changed files with 93 additions and 0 deletions

View File

@ -1,6 +1,7 @@
browserBindings.xul
editorBindings.xul
inputBindings.xul
textAreaBindings.xul
hiddenWindow.xul
globalOverlay.xul
globalOverlay.js

View File

@ -32,6 +32,7 @@ EXPORT_RESOURCE_CONTENT = \
$(srcdir)/browserBindings.xul \
$(srcdir)/editorBindings.xul \
$(srcdir)/inputBindings.xul \
$(srcdir)/textAreaBindings.xul \
$(srcdir)/hiddenWindow.xul \
$(srcdir)/globalOverlay.xul \
$(srcdir)/globalOverlay.js \

View File

@ -31,6 +31,7 @@ install::
$(MAKE_INSTALL) browserBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) editorBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) inputBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) textAreaBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) hiddenWindow.xul $(DISTBROWSER)
$(MAKE_INSTALL) globalOverlay.xul $(DISTBROWSER)
$(MAKE_INSTALL) globalOverlay.js $(DISTBROWSER)

View File

@ -0,0 +1,90 @@
<?xml version="1.0"?>
<?xul-overlay href="chrome://global/content/platformGlobalOverlay.xul"?>
<window id="textAreaBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<keyset id="editorKeySet">
<key id="key_home" keycode="VK_HOME" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="key_end" keycode="VK_END" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
<key id="key_left" keycode="VK_LEFT" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
controller.doCommand('cmd_charPrevious');"/>
<key id="key_right" keycode="VK_RIGHT" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_charNext');
controller.doCommand('cmd_charNext');"/>
<key id="key_homeshift" keycode="VK_HOME" shift="true" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectBeginLine');
controller.doCommand('cmd_selectBeginLine');"/>
<key id="key_endshift" keycode="VK_END" shift="true" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectEndLine');
controller.doCommand('cmd_selectEndLine');"/>
<key id="key_leftshift" keycode="VK_LEFT" shift="true" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectCharPrevious');
controller.doCommand('cmd_selectCharPrevious');"/>
<key id="key_rightshift" keycode="VK_RIGHT" shift="true" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectCharNext');
controller.doCommand('cmd_selectCharNext');"/>
<key id="key_leftcontrol" keycode="VK_LEFT" shift="false" control="true"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_wordPrevious');
controller.doCommand('cmd_wordPrevious');"/>
<key id="key_rightcontrol" keycode="VK_RIGHT" shift="false" control="true"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_wordNext');
controller.doCommand('cmd_wordNext');"/>
<key id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectWordPrevious');
controller.doCommand('cmd_wordPrevious');"/>
<key id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_selectWordNext');
controller.doCommand('cmd_wordNext');"/>
<key id="key_pageup" keycode="VK_PAGE_UP" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_scrollPageUp');
controller.doCommand('cmd_scrollPageUp');"/>
<key id="key_pagedown" keycode="VK_PAGE_DOWN" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
controller.doCommand('cmd_scrollPageDown');"/>
<key id="key_undo" key="z" xulkey="true" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="key_undo" key="y" xulkey="true" shift="false" control="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
</keyset>
</window>