Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
. )<br />
Chapter 9. Customizing <strong>Prism</strong> 143<br />
Chapter9.C som z g- Pr_--m ..... 1 43-----------<br />
Changing Keyboard Translations in Text Widgets<br />
Use the <strong>Prism</strong>.textOneFieldTranslations resource to change the default keyboard<br />
translations for dialog boxes that contain only one text field. Its default<br />
definition is:<br />
<strong>Prism</strong>.textOneFieldTranslations: \<br />
osfDelete: delete-previous-character () \n\<br />
osfBackSpace: delete-previous-character() \n\<br />
Ctrlu: eraseto_beginning() \n\<br />
Ctrlk: erase toend() \n\<br />
Ctrld: delete char_at_cursor_position() \n\<br />
ctrlf: move cursor to next char() \n\<br />
Ctrlh: move cursor to_prev char() \n\<br />
Ctrlb: move_cursor_toprev_char() \n\<br />
Ctrla: move cursor to beginning of_text() \n\<br />
Ctrle: move cursor to end of text()<br />
Che definitions with osf in them are special Motif keyboard symbols.)<br />
Use the <strong>Prism</strong>.texanyFieldTranslations resource to change the default keyboard<br />
tnslations for dialog boxes that contain several text fields. Its default<br />
definition is:<br />
<strong>Prism</strong>.textManyFieldTanslations: \<br />
osfDelete: delete-previous-character () \n\<br />
osfBackSpace: delete-previous-character() \n\<br />
Return: next-tab-group() \n\<br />
KP_Enter: next-tab-group() \n\<br />
Ctrlu: erase to_beginning() \n\<br />
Ctrlk: erasetoend() \n\<br />
Ctrld: delete_char at cursorposition() \n\<br />
Ctrlf: move cursorto next char() \n\<br />
Ctrlh: move_cursor toprev_char () \n\<br />
Ctrlb: move_cursor toprev_char() \n\<br />
Ctrla: move_cursor tobeginning_of_text() \n\<br />
Ctrle: movecursorto end of text()<br />
If you make a change to any field in one of these resources, you must copy all<br />
the definitions.<br />
Changing General Motif Keyboard Translations<br />
<strong>Prism</strong> uses the standard Motif translations that define the general mappings of<br />
functions to keys. They are shown below.<br />
Version 1.2, March 1993<br />
Copyright 0 1993 Thining Machines Corporation