749N/A/* $XConsortium: TextTr.c,v 1.20 95/06/14 15:07:27 kaleb Exp $ */
749N/A
749N/A/*
749N/A
749N/ACopyright (c) 1991, 1994 X Consortium
749N/A
749N/APermission is hereby granted, free of charge, to any person obtaining a copy
749N/Aof this software and associated documentation files (the "Software"), to deal
749N/Ain the Software without restriction, including without limitation the rights
749N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
749N/Acopies of the Software, and to permit persons to whom the Software is
749N/Afurnished to do so, subject to the following conditions:
749N/A
749N/AThe above copyright notice and this permission notice shall be included in
749N/Aall copies or substantial portions of the Software.
749N/A
749N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
749N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
749N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
749N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
749N/A
749N/AExcept as contained in this notice, the name of the X Consortium shall not be
749N/Aused in advertising or otherwise to promote the sale, use or other dealings
749N/Ain this Software without prior written authorization from the X Consortium.
749N/A
749N/A*/
749N/A
749N/A/* INTERNATIONALIZATION:
749N/A
749N/AThe OMRON R5 contrib added the following action to the old TextTr:
749N/A
749N/A Ctrl<Key>backslash: reconnect-im()
749N/A
749N/AThis is needed when the im is killed or otherwise becomes unreachable.
749N/AThis keystroke is evil (inconvenient, hard-to-remember, not obvious)
749N/Aso I am adding one more translation:
749N/A
749N/A <Key>Kanji: reconnect-im()
749N/A
749N/AThe Japanese user typically hits their Kanji key when they want to do
749N/Ainput. This merely makes sure the input is connected.
749N/A*/
749N/A
749N/Achar *_XawDefaultTextTranslations1 =
749N/A"\
749N/ACtrl<Key>A: beginning-of-line() \n\
749N/ACtrl<Key>B: backward-character() \n\
749N/ACtrl<Key>C: insert-selection(CUT_BUFFER0) \n\
749N/ACtrl<Key>D: delete-next-character() \n\
749N/ACtrl<Key>E: end-of-line() \n\
749N/ACtrl<Key>F: forward-character() \n\
749N/ACtrl<Key>G: multiply(Reset) \n\
749N/ACtrl<Key>H: delete-previous-character() \n\
749N/ACtrl<Key>J: newline-and-indent() \n\
749N/ACtrl<Key>K: kill-to-end-of-line() \n\
749N/ACtrl<Key>L: redraw-display() \n\
749N/ACtrl<Key>M: newline() \n\
749N/ACtrl<Key>N: next-line() \n\
749N/ACtrl<Key>O: newline-and-backup() \n\
749N/ACtrl<Key>P: previous-line() \n\
749N/ACtrl<Key>R: search(backward) \n\
749N/ACtrl<Key>S: search(forward) \n\
749N/ACtrl<Key>T: transpose-characters() \n\
749N/ACtrl<Key>U: multiply(4) \n\
749N/ACtrl<Key>V: next-page() \n\
749N/ACtrl<Key>W: kill-selection() \n\
749N/ACtrl<Key>Y: insert-selection(SECONDARY) \n\
749N/ACtrl<Key>Z: scroll-one-line-up() \n\
749N/A", *_XawDefaultTextTranslations2 = "\
749N/AMeta<Key>B: backward-word() \n\
749N/AMeta<Key>F: forward-word() \n\
749N/AMeta<Key>I: insert-file() \n\
749N/AMeta<Key>K: kill-to-end-of-paragraph() \n\
749N/AMeta<Key>Q: form-paragraph() \n\
749N/AMeta<Key>V: previous-page() \n\
749N/AMeta<Key>Y: insert-selection(PRIMARY, CUT_BUFFER0) \n\
749N/AMeta<Key>Z: scroll-one-line-down() \n\
749N/A:Meta<Key>d: delete-next-word() \n\
749N/A:Meta<Key>D: kill-word() \n\
749N/A:Meta<Key>h: delete-previous-word() \n\
749N/A:Meta<Key>H: backward-kill-word() \n\
749N/A:Meta<Key>\\<: beginning-of-file() \n\
749N/A:Meta<Key>\\>: end-of-file() \n\
749N/A:Meta<Key>]: forward-paragraph() \n\
749N/A:Meta<Key>[: backward-paragraph() \n\
749N/A~Shift Meta<Key>Delete: delete-previous-word() \n\
749N/A Shift Meta<Key>Delete: backward-kill-word() \n\
749N/A~Shift Meta<Key>BackSpace: delete-previous-word() \n\
749N/A Shift Meta<Key>BackSpace: backward-kill-word() \n\
749N/A", *_XawDefaultTextTranslations3 = "\
749N/A<Key>Home: beginning-of-file() \n\
749N/A:<Key>KP_Home: beginning-of-file() \n\
749N/A<Key>End: end-of-file() \n\
749N/A:<Key>KP_End: end-of-file() \n\
749N/A<Key>Next: next-page() \n\
749N/A:<Key>KP_Next: next-page() \n\
749N/A<Key>Prior: previous-page() \n\
749N/A:<Key>KP_Prior: previous-page() \n\
749N/A<Key>Right: forward-character() \n\
749N/A:<Key>KP_Right: forward-character() \n\
749N/A<Key>Left: backward-character() \n\
749N/A:<Key>KP_Left: backward-character() \n\
749N/A<Key>Down: next-line() \n\
749N/A:<Key>KP_Down: next-line() \n\
749N/A<Key>Up: previous-line() \n\
749N/A:<Key>KP_Up: previous-line() \n\
749N/A<Key>Delete: delete-previous-character() \n\
749N/A:<Key>KP_Delete: delete-previous-character() \n\
749N/A<Key>BackSpace: delete-previous-character() \n\
749N/A<Key>Linefeed: newline-and-indent() \n\
749N/A<Key>Return: newline() \n\
749N/A:<Key>KP_Enter: newline() \n\
749N/ACtrl<Key>backslash: reconnect-im() \n\
749N/A<Key>Kanji: reconnect-im()\n\
749N/A<Key>: insert-char() \n\
749N/A", *_XawDefaultTextTranslations4 = "\
749N/A<EnterWindow>: enter-window() \n\
749N/A<LeaveWindow>: leave-window() \n\
749N/A<FocusIn>: focus-in() \n\
749N/A<FocusOut>: focus-out() \n\
749N/A<Btn1Down>: select-start() \n\
749N/A<Btn1Motion>: extend-adjust() \n\
749N/A<Btn1Up>: extend-end(PRIMARY, CUT_BUFFER0) \n\
749N/A<Btn2Down>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
749N/A<Btn3Down>: extend-start() \n\
749N/A<Btn3Motion>: extend-adjust() \n\
749N/A<Btn3Up>: extend-end(PRIMARY, CUT_BUFFER0) \
749N/A";