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