]> Pileus Git - ~andy/gtk/blob - gtk/gtkrc.key.mac
stylecontext: Do invalidation on first resize container
[~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-cmd-arrows"
87 {
88   bind "<meta>Left" { "move-cursor" (paragraph-ends, -1, 0) }
89   bind "<meta>KP_Left" { "move-cursor" (paragraph-ends, -1, 0) }
90   bind "<shift><meta>Left" { "move-cursor" (paragraph-ends, -1, 1) }
91   bind "<shift><meta>KP_Left" { "move-cursor" (paragraph-ends, -1, 1) }
92   bind "<meta>Right" { "move-cursor" (paragraph-ends, 1, 0) }
93   bind "<meta>KP_Right" { "move-cursor" (paragraph-ends, 1, 0) }
94   bind "<shift><meta>Right" { "move-cursor" (paragraph-ends, 1, 1) }
95   bind "<shift><meta>KP_Right" { "move-cursor" (paragraph-ends, 1, 1) }
96 }
97
98 class "GtkTextView" binding "gtk-mac-cmd-arrows"
99 class "GtkLabel" binding "gtk-mac-cmd-arrows"
100 class "GtkEntry" binding "gtk-mac-cmd-arrows"
101
102
103 binding "gtk-mac-emacs-like"
104 {
105   bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
106   bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
107   bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
108   bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }
109
110   bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
111   bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
112   bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
113   bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }
114 }
115
116 class "GtkTextView" binding "gtk-mac-emacs-like"
117 class "GtkLabel" binding "gtk-mac-emacs-like"
118 class "GtkEntry" binding "gtk-mac-emacs-like
119
120
121 binding "gtk-mac-file-chooser"
122 {
123   bind "<meta>v" { "location-popup-on-paste" () }
124   unbind "<ctrl>v"
125
126   bind "<meta><shift>G" { "location-popup" () }
127   bind "<meta><shift>H" { "home-folder" () }
128   bind "<meta>Up" { "up-folder" () }
129 }
130
131 class "GtkFileChooserDefault" binding "gtk-mac-file-chooser"
132
133
134 binding "gtk-mac-tree-view"
135 {
136   bind "<meta>a" { "select-all" () }
137   bind "<shift><meta>a" { "unselect-all" () }
138   bind "<meta>f" { "start-interactive-search" () }
139   bind "<meta>F" { "start-interactive-search" () }
140   unbind "<ctrl>a"
141   unbind "<shift><ctrl>a"
142   unbind "<ctrl>f"
143   unbind "<ctrl>F"
144 }
145
146 class "GtkTreeView" binding "gtk-mac-tree-view"
147
148
149 binding "gtk-mac-icon-view"
150 {
151   bind "<meta>a" { "select-all" () }
152   bind "<shift><meta>a" { "unselect-all" () }
153   unbind "<ctrl>a"
154   unbind "<shift><ctrl>a"
155 }
156
157 class "GtkIconView" binding "gtk-mac-icon-view"