dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / UNIXbindings.cpp
1 ! $XConsortium: UNIXbindings.src /main/2 1995/07/20 12:05:57 drk $
2 !######################################################################
3 !#
4 !#  UNIXbindings
5 !#
6 !#  Common Desktop Environment (CDE)
7 !#
8 !#  Provides EMACS style translations for DtEditor widget applications
9 !#  such as Dtpad and Dtmail.  Also provides alternates for DtEditor
10 !#  widget application menu accelerators which confict with these
11 !#  translations.
12 !#
13 !#  By default this file is not used by DtEditor widget applications.
14 !#  To enable these bindings, include this file in your home directory
15 !#  .Xdefaults file and then restart your session.  Initially, you can
16 !#  include this file simply by inserting a #include directive in your
17 !#  .Xdefaults file:
18 !#
19 !#      #include "/usr/dt/app-defaults/LANG/UNIXbindings"
20 !#
21 !#  where LANG is the value of your $LANG environment variable
22 !#  (normally "C").
23 !#
24 !#  To modifiy these bindings, insert the contents of this file directly
25 !#  in your .Xdefaults file instead of the above include directive.
26 !#  Then edit the bindings in your .Xdefaults file (and restart your
27 !#  session when done).
28 !#
29 !#
30 !#  (c) Copyright 1993, 1994 Hewlett-Packard Company
31 !#  (c) Copyright 1993, 1994 International Business Machines Corp.
32 !#  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
33 !#  (c) Copyright 1993, 1994 Novell, Inc.
34 !#
35 !######################################################################
36
37
38 !######################################################################
39 !# Dtpad overrides for menu accelerators and accelerator text which
40 !# confict with the UNIX bindings.
41 !######################################################################
42 Dtpad*fileMenu.print.acceleratorText:           
43 Dtpad*fileMenu.print.accelerator:               
44 Dtpad*editMenu.undo.acceleratorText:            Ctrl+_
45 Dtpad*editMenu.undo.accelerator:                Ctrl<Key>_
46 Dtpad*editMenu.paste.acceleratorText:           Shift+Insert
47 Dtpad*editMenu.paste.accelerator:               Shift<Key>osfInsert
48 Dtpad*editMenu.findChange.acceleratorText:      Ctrl+S
49 Dtpad*editMenu.findChange.accelerator:          Ctrl<Key>s
50
51
52 !######################################################################
53 !# Dtmail compose dialog overrides for menu accelerators and accelerator
54 !# text which confict with the UNIX bindings.
55 !######################################################################
56 Dtmail*ComposeDialog*menubar*Edit.Undo.acceleratorText:         Ctrl+_
57 Dtmail*ComposeDialog*menubar*Edit.Undo.accelerator:             Ctrl<Key>_
58 Dtmail*ComposeDialog*menubar*Edit.Paste.acceleratorText:        Shift+Insert
59 Dtmail*ComposeDialog*menubar*Edit.Paste.accelerator:            Shift<Key>osfInsert
60 Dtmail*ComposeDialog*menubar*Edit.Find/Change.acceleratorText:  Ctrl+S
61 Dtmail*ComposeDialog*menubar*Edit.Find/Change.accelerator:      Ctrl<Key>s
62
63
64 !######################################################################
65 !# UNIX Bindings.
66 !#
67 !# The following translations provide (GNU style) EMACS control and
68 !# meta key bindings plus some additional bindings.  When appropriate,
69 !# they also allow the Shift key to be used in combination with the
70 !# normal binding to reverse the direction of the operation.  For
71 !# example, Ctrl-Shift-F will move the cursor backward a character
72 !# since Ctrl-F normally moves it forward a character.
73 !#
74 !# The additional bindings are:
75 !#
76 !#    Ctrl-comma:  backward-word       Ctrl-Shift-comma:  forward-word
77 !#    Ctrl-period: forward-word        Ctrl-Shift-period: backward-word
78 !#    Ctrl-Return: end-of-file         Ctrl-Shift-Return: beginning-of-file
79 !#
80 !# NOTES:
81 !#
82 !#  o GNU EMACS binds delete-previous-character() rather than
83 !#    delete-next-character() to the Delete key.
84 !#  o Meta-F is normally the mnemonic for the File menu so the binding
85 !#    to forward-word() will be ignored.
86 !#
87 !######################################################################
88 *DtEditor.textTranslations: \
89 c ~s            <Key>a:                 beginning-of-line()\n\
90 c s             <Key>a:                 end-of-line()\n\
91 c ~s            <Key>b:                 backward-character()\n\
92 c s             <Key>b:                 forward-character()\n\
93 c ~s            <Key>b:                 backward-character()\n\
94 c s             <Key>b:                 backward-word()\n\
95 m ~s            <Key>b:                 backward-word()\n\
96 m s             <Key>b:                 forward-word()\n\
97 c ~s            <Key>d:                 delete-next-character()\n\
98 c s             <Key>d:                 delete-previous-character()\n\
99 m ~s            <Key>d:                 kill-next-word()\n\
100 m s             <Key>d:                 kill-previous-word()\n\
101 c ~s            <Key>e:                 end-of-line()\n\
102 c s             <Key>e:                 beginning-of-line()\n\
103 c ~s            <Key>f:                 forward-character()\n\
104 c s             <Key>f:                 backward-character()\n\
105 m ~s            <Key>f:                 forward-word()\n\
106 m s             <Key>f:                 backward-word()\n\
107 c               <Key>j:                 newline-and-indent()\n\
108 c ~s            <Key>k:                 kill-to-end-of-line()\n\
109 c s             <Key>k:                 kill-to-start-of-line()\n\
110 c               <Key>l:                 redraw-display()\n\
111 c               <Key>m:                 newline()\n\
112 c ~s            <Key>n:                 process-down()\n\
113 c s             <Key>n:                 process-up()\n\
114 c               <Key>o:                 newline-and-backup()\n\
115 c ~s            <Key>p:                 process-up()\n\
116 c s             <Key>p:                 process-down()\n\
117 c ~s            <Key>u:                 kill-to-start-of-line()\n\
118 c s             <Key>u:                 kill-to-end-of-line()\n\
119 c ~s            <Key>v:                 next-page()\n\
120 c s             <Key>v:                 previous-page()\n\
121 m ~s            <Key>v:                 previous-page()\n\
122 m s             <Key>v:                 next-page()\n\
123 c               <Key>w:                 kill-selection()\n\
124 c ~s            <Key>y:                 unkill()\n\
125 m               <Key>]:                 forward-paragraph()\n\
126 m               <Key>[:                 backward-paragraph()\n\
127 c ~s            <Key>comma:             backward-word()\n\
128 c s             <Key>comma:             forward-word()\n\
129 m               <Key>\\<:               beginning-of-file()\n\
130 c ~s            <Key>period:            forward-word()\n\
131 c s             <Key>period:            backward-word()\n\
132 m               <Key>\\>:               end-of-file()\n\
133 c ~s            <Key>Return:            end-of-file()\n\
134 c s             <Key>Return:            beginning-of-file()\n\
135 ~c ~s ~m ~a     <Key>osfDelete:         delete-previous-character()\n\
136 ~c s ~m ~a      <Key>osfDelete:         delete-next-character()
137
138 !###########################   eof   ###########################