1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
/*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* HISTORY
*/
/*
static char rcsid[] = "$XConsortium: Text2.dat /main/7 1995/07/13 19:27:52 drk $"
*/
#) This text widget has defined a number of different translations, which are
listed below. Try each translation and verify that the correct action is
performed. The fontList for this text widget is variable. If you
need to add more text to the example, do so.
!)
Ctrl<Key>g beep
Ctrl<Key>i insert string "newstring"
Ctrl<Key>right bracket forward a paragraph
Ctrl<Key>left bracket back a paragraph
Meta<Key>u scroll one line up
Meta<Key>d scroll down one line
Ctrl<Key>f next page
Ctrl<Key>b previous page
<Key>BackSpace kill previous character
Ctrl<Key>s kill selection
Ctrl<Key>k kill next word
Meta<Key>k kill previous word
Ctrl<Key>u unkill
Ctrl<Key>r delete previous word
Meta<Key>r delete next word.
Ctrl<Key>c cut primary selection
C)
/* test case for PIR 3520 */
/* This PIR was closed, test is no longer valid.
* #) Select any word in the text by double clicking MB1 on it.
* #) Press the Backspace key to kill the selection.
* #) Click MB1 somewhere else in the text.
* #) Press Ctrl<Key>u to unkill the selection and paste it at the
* insertion cursor position.
* #) Perform the same sequence of select word, kill and unkill using
* the kill-next-word ( Ctrl<Key>k ) action.
* #) Once again, perform the sequence using the kill-previous-word
* ( Meta<Key>k ) action.
* C)
*/
/* end of test case for PIR 3520 */
/* test case for CR 8029 */
#) Move the cursor to the beginning of the text. Type the following lines,
typing a space where the instructions indicate \"_\".
!)
__A paragraph that starts<CR>
with whitespace<CR>
<CR>
#) Move the cursor to the beginning of the text again. Type
Ctrl<Key>right bracket to move forward a paragraph. You should
be able to continue, no infinite loop should occur.
C)
E)
|