]> Pileus Git - ~andy/gtk/blob - gtk/gtkrc.key.mac
gtk: disable mnemonics in gtkrc.key.mac, they don't exist on the Mac
[~andy/gtk] / gtk / gtkrc.key.mac
1 gtk-enable-mnemonics = 0
2
3 binding "gtk-mac-alt-arrows"
4 {
5   bind "<alt>Right"           { "move-cursor" (words, 1, 0) }
6   bind "<alt>KP_Right"        { "move-cursor" (words, 1, 0) }
7   bind "<alt>Left"            { "move-cursor" (words, -1, 0) }
8   bind "<alt>KP_Left"         { "move-cursor" (words, -1, 0) }
9   bind "<shift><alt>Right"    { "move-cursor" (words, 1, 1) }
10   bind "<shift><alt>KP_Right" { "move-cursor" (words, 1, 1) }
11   bind "<shift><alt>Left"     { "move-cursor" (words, -1, 1) }
12   bind "<shift><alt>KP_Left"  { "move-cursor" (words, -1, 1) }
13 }
14
15 class "GtkTextView" binding "gtk-mac-alt-arrows"
16 class "GtkLabel" binding "gtk-mac-alt-arrows"
17 class "GtkEntry" binding "gtk-mac-alt-arrows"
18
19
20 binding "gtk-mac-alt-delete"
21 {
22   bind "<alt>Delete" { "delete-from-cursor" (word-ends, 1) }
23   bind "<alt>KP_Delete" { "delete-from-cursor" (word-ends, 1) }
24   bind "<alt>BackSpace" { "delete-from-cursor" (word-ends, -1) }
25 }
26
27 class "GtkTextView" binding "gtk-mac-alt-delete"
28 class "GtkEntry" binding "gtk-mac-alt-delete"
29
30
31 binding "gtk-mac-cmd-c"
32 {
33   bind "<meta>x" { "cut-clipboard" () }
34   bind "<meta>c" { "copy-clipboard" () }
35   bind "<meta>v" { "paste-clipboard" () }
36   unbind "<ctrl>x"
37   unbind "<ctrl>c"
38   unbind "<ctrl>v"
39 }
40
41 class "GtkTextView" binding "gtk-mac-cmd-c"
42 class "GtkEntry" binding "gtk-mac-cmd-c"
43
44
45 binding "gtk-mac-text-view"
46 {
47   bind "<shift><meta>a" { "select-all" (0) }
48   bind "<meta>a" { "select-all" (1) }
49   unbind "<shift><ctrl>a"
50   unbind "<ctrl>a"
51 }
52
53 class "GtkTextView" binding "gtk-mac-text-view"
54
55
56 binding "gtk-mac-label"
57 {
58   bind "<meta>a" {
59     "move-cursor" (paragraph-ends, -1, 0)
60     "move-cursor" (paragraph-ends, 1, 1)
61   }
62   bind "<shift><meta>a" { "move-cursor" (paragraph-ends, 0, 0) }
63   bind "<meta>c" { "copy-clipboard" () }
64   unbind "<ctrl>a"
65   unbind "<shift><ctrl>a"
66   unbind "<ctrl>c"
67 }
68
69 class "GtkLabel" binding "gtk-mac-label"
70
71
72 binding "gtk-mac-entry"
73 {
74   bind "<meta>a" {
75     "move-cursor" (buffer-ends, -1, 0)
76     "move-cursor" (buffer-ends, 1, 1)
77   }
78   bind "<shift><meta>a" { "move-cursor" (visual-positions, 0, 0) }
79   unbind "<ctrl>a"
80   unbind "<shift><ctrl>a"
81 }
82
83 class "GtkEntry" binding "gtk-mac-entry"
84
85
86 binding "gtk-mac-file-chooser"
87 {
88   bind "<meta>v" { "location-popup-on-paste" () }
89   unbind "<ctrl>v"
90
91   bind "<meta><shift>G" { "location-popup" () }
92   bind "<meta><shift>H" { "home-folder" () }
93   bind "<meta>Up" { "up-folder" () }
94 }
95
96 class "GtkFileChooserDefault" binding "gtk-mac-file-chooser"
97
98
99 binding "gtk-mac-tree-view"
100 {
101   bind "<meta>a" { "select-all" () }
102   bind "<shift><meta>a" { "unselect-all" () }
103   bind "<meta>f" { "start-interactive-search" () }
104   bind "<meta>F" { "start-interactive-search" () }
105   unbind "<ctrl>a"
106   unbind "<shift><ctrl>a"
107   unbind "<ctrl>f"
108   unbind "<ctrl>F"
109 }
110
111 class "GtkTreeView" binding "gtk-mac-tree-view"
112
113
114 binding "gtk-mac-icon-view"
115 {
116   bind "<meta>a" { "select-all" () }
117   bind "<shift><meta>a" { "unselect-all" () }
118   unbind "<ctrl>a"
119   unbind "<shift><ctrl>a"
120 }
121
122 class "GtkIconView" binding "gtk-mac-icon-view"
123 binding "gtk-mac-alt-arrows"
124 {
125   bind "<alt>Right"           { "move-cursor" (words, 1, 0) }
126   bind "<alt>KP_Right"        { "move-cursor" (words, 1, 0) }
127   bind "<alt>Left"            { "move-cursor" (words, -1, 0) }
128   bind "<alt>KP_Left"         { "move-cursor" (words, -1, 0) }
129   bind "<shift><alt>Right"    { "move-cursor" (words, 1, 1) }
130   bind "<shift><alt>KP_Right" { "move-cursor" (words, 1, 1) }
131   bind "<shift><alt>Left"     { "move-cursor" (words, -1, 1) }
132   bind "<shift><alt>KP_Left"  { "move-cursor" (words, -1, 1) }
133 }
134
135 class "GtkTextView" binding "gtk-mac-alt-arrows"
136 class "GtkLabel" binding "gtk-mac-alt-arrows"
137 class "GtkEntry" binding "gtk-mac-alt-arrows"
138
139
140 binding "gtk-mac-alt-delete"
141 {
142   bind "<alt>Delete" { "delete-from-cursor" (word-ends, 1) }
143   bind "<alt>KP_Delete" { "delete-from-cursor" (word-ends, 1) }
144   bind "<alt>BackSpace" { "delete-from-cursor" (word-ends, -1) }
145 }
146
147 class "GtkTextView" binding "gtk-mac-alt-delete"
148 class "GtkEntry" binding "gtk-mac-alt-delete"
149
150
151 binding "gtk-mac-cmd-c"
152 {
153   bind "<meta>x" { "cut-clipboard" () }
154   bind "<meta>c" { "copy-clipboard" () }
155   bind "<meta>v" { "paste-clipboard" () }
156   unbind "<ctrl>x"
157   unbind "<ctrl>c"
158   unbind "<ctrl>v"
159 }
160
161 class "GtkTextView" binding "gtk-mac-cmd-c"
162 class "GtkEntry" binding "gtk-mac-cmd-c"
163
164
165 binding "gtk-mac-text-view"
166 {
167   bind "<shift><meta>a" { "select-all" (0) }
168   bind "<meta>a" { "select-all" (1) }
169   unbind "<shift><ctrl>a"
170   unbind "<ctrl>a"
171 }
172
173 class "GtkTextView" binding "gtk-mac-text-view"
174
175
176 binding "gtk-mac-label"
177 {
178   bind "<meta>a" {
179     "move-cursor" (paragraph-ends, -1, 0)
180     "move-cursor" (paragraph-ends, 1, 1)
181   }
182   bind "<shift><meta>a" { "move-cursor" (paragraph-ends, 0, 0) }
183   bind "<meta>c" { "copy-clipboard" () }
184   unbind "<ctrl>a"
185   unbind "<shift><ctrl>a"
186   unbind "<ctrl>c"
187 }
188
189 class "GtkLabel" binding "gtk-mac-label"
190
191
192 binding "gtk-mac-entry"
193 {
194   bind "<meta>a" {
195     "move-cursor" (buffer-ends, -1, 0)
196     "move-cursor" (buffer-ends, 1, 1)
197   }
198   bind "<shift><meta>a" { "move-cursor" (visual-positions, 0, 0) }
199   unbind "<ctrl>a"
200   unbind "<shift><ctrl>a"
201 }
202
203 class "GtkEntry" binding "gtk-mac-entry"
204
205
206 binding "gtk-mac-file-chooser"
207 {
208   bind "<meta>v" { "location-popup-on-paste" () }
209   unbind "<ctrl>v"
210
211   bind "<meta><shift>G" { "location-popup" () }
212   bind "<meta><shift>H" { "home-folder" () }
213   bind "<meta>Up" { "up-folder" () }
214 }
215
216 class "GtkFileChooserDefault" binding "gtk-mac-file-chooser"
217
218
219 binding "gtk-mac-tree-view"
220 {
221   bind "<meta>a" { "select-all" () }
222   bind "<shift><meta>a" { "unselect-all" () }
223   bind "<meta>f" { "start-interactive-search" () }
224   bind "<meta>F" { "start-interactive-search" () }
225   unbind "<ctrl>a"
226   unbind "<shift><ctrl>a"
227   unbind "<ctrl>f"
228   unbind "<ctrl>F"
229 }
230
231 class "GtkTreeView" binding "gtk-mac-tree-view"
232
233
234 binding "gtk-mac-icon-view"
235 {
236   bind "<meta>a" { "select-all" () }
237   bind "<shift><meta>a" { "unselect-all" () }
238   unbind "<ctrl>a"
239   unbind "<shift><ctrl>a"
240 }
241
242 class "GtkIconView" binding "gtk-mac-icon-view"