21610, 18033: split off from the global overlay the four

platform-specific key binding files per platform,
  as requested by Hyatt for his new keybinding plan.
  Part of the ongoing mjudge/hyatt/me/saari checkin.
This commit is contained in:
akkana%netscape.com 1999-12-16 23:33:51 +00:00
Родитель 881d203b8f
Коммит 7a2eca522c
17 изменённых файлов: 404 добавлений и 59 удалений

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

@ -1,2 +1,7 @@
platformDialogOverlay.xul
platformGlobalOverlay.xul
platformBrowserBindings.xul
platformInputBindings.xul
platformTextFieldBindings.xul
platformEditorBindings.xul

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

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- mac version of platformBrowserBindings.xul -->
<keybinding id="platformBrowserBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Mac-specific key bindings -->
<keyset id="editorKeySet" xulkey="meta">
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="macHomekb" keycode="VK_HOME" control="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"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
controller.doCommand('cmd_scrollBottom');"/>
</keyset>
<!-- End Mac-specific key bindings -->
</keybinding>

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

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- mac version of platformEditorBindings.xul -->
<keybinding id="platformEditorBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Mac-specific key bindings -->
<keyset id="editorKeySet" xulkey="meta">
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="macHomekb" keycode="VK_HOME" control="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"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
controller.doCommand('cmd_scrollBottom');"/>
</keyset>
<!-- End Mac-specific key bindings -->
</keybinding>

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

@ -8,7 +8,7 @@
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- close -->
<!-- close -->
<menuitem id="menu_close" value="&closeCmd.label;" key="key_close" observes="cmd_close"/>
<key id="key_close" xulkey="true" key="&closeCmd.key;" observes="cmd_close"/>

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

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- mac version of platformInputBindings.xul -->
<keybinding id="platformInputBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Mac-specific key bindings -->
<keyset id="editorKeySet" xulkey="meta">
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="macHomekb" keycode="VK_HOME" control="false" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="macEndkb" keycode="VK_END" control="false" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
</keyset>
<!-- End Mac-specific key bindings -->
</keybinding>

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

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- mac version of platformTextAreaBindings.xul -->
<keybinding id="platformTextAreaBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Mac-specific key bindings -->
<keyset id="editorKeySet" xulkey="meta">
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<key id="macHomekb" keycode="VK_HOME" control="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"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
controller.doCommand('cmd_scrollBottom');"/>
</keyset>
<!-- End Mac-specific key bindings -->
</keybinding>

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

@ -29,6 +29,11 @@ include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/platformGlobalOverlay.xul \
$(srcdir)/platformDialogOverlay.xul \
$(srcdir)/platformInputBindings.xul \
$(srcdir)/platformBrowserBindings.xul \
$(srcdir)/platformInputBindings.xul \
$(srcdir)/platformEditorBindings.xul \
$(srcdir)/platformTextAreaBindings.xul \
$(NULL)
include $(topsrcdir)/config/rules.mk

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

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- unix version of platformBrowserBindings.xul -->
<keybinding id="platformBrowserBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="globalKeySet" xulkey="alt">
<!-- No unix-specific browser bindings known at this time -->
</keyset>
</keybinding>

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

@ -0,0 +1,68 @@
<?xml version="1.0"?>
<!-- unix version of platformEditorBindings.xul -->
<keybinding id="platformEditorBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- 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');"/>
<!-- 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="" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_lineNext');
controller.doCommand('cmd_lineNext');"/>
<key id="emPageDownkb" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
controller.doCommand('cmd_scrollPageDown');"/>
<key id="emacspagedownkb" key="v" control="true" onkeypress="SelectionPageDown()" />
<key id="emPageUpkb" key="v" control="true" shift="false" meta="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageUp');
controller.doCommand('cmd_scrollPageUp');"/>
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -7,64 +7,6 @@
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- 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');"/>
<!-- 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="" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_lineNext');
controller.doCommand('cmd_lineNext');"/>
<key id="emPageDownkb" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
controller.doCommand('cmd_scrollPageDown');"/>
<key id="emacspagedownkb" key="v" control="true" onkeypress="SelectionPageDown()" />
<key id="emPageUpkb" key="v" control="true" shift="false" meta="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageUp');
controller.doCommand('cmd_scrollPageUp');"/>
</keyset>
<!-- 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"/>

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

@ -0,0 +1,52 @@
<?xml version="1.0"?>
<!-- unix version of platformInputBindings.xul -->
<keybinding id="platformInputBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- 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');"/>
<!-- 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');"/>
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -0,0 +1,69 @@
<?xml version="1.0"?>
<!-- unix version of platformTextAreaBindings.xul -->
<keybinding id="platformTextAreaBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- change the xul key for Unix -->
<keyset id="editorKeySet" xulkey="alt">
<!-- 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');"/>
<!-- 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="" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_lineNext');
controller.doCommand('cmd_lineNext');"/>
<key id="emPageDownkb" key="v" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
controller.doCommand('cmd_scrollPageDown');"/>
<key id="emacspagedownkb" key="v" control="true" onkeypress="SelectionPageDown()" />
<key id="emPageUpkb" key="v" control="true" shift="false" meta="true"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollPageUp');
controller.doCommand('cmd_scrollPageUp');"/>
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -29,6 +29,10 @@ DISTBROWSER=$(DIST)\bin\chrome\global\content\default
install::
$(MAKE_INSTALL) platformGlobalOverlay.xul $(DISTBROWSER)
$(MAKE_INSTALL) platformDialogOverlay.xul $(DISTBROWSER)
$(MAKE_INSTALL) platformBrowserBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) platformInputBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) platformTextFieldBindings.xul $(DISTBROWSER)
$(MAKE_INSTALL) platformEditorBindings.xul $(DISTBROWSER)
clobber::
rm -f $(DIST)\bin\chrome\global\content\default\*.*

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

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!-- windows version of platformBrowserBindings.xul -->
<keybinding id="platformBrowserBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- xul key for Windows -->
<keyset id="globalKeySet" xulkey="ctrl">
<!-- No windows-specific browser bindings known at this time -->
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!-- windows version of platformEditorBindings.xul -->
<keybinding id="platformEditorBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- xul key for Windows -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- No windows-specific editor bindings known at this time -->
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!-- windows version of platformInputBindings.xul -->
<keybinding id="platformInputBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- xul key for Windows -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- No windows-specific input bindings known at this time -->
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>

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

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!-- windows version of platformTextAreaBindings.xul -->
<keybinding id="platformTextAreaBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- xul key for Windows -->
<keyset id="editorKeySet" xulkey="ctrl">
<!-- No windows-specific text area bindings known at this time -->
</keyset>
<!-- End Unix-specific keybindings -->
</keybinding>