mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
gtkrc.key.mac: add Command-cursor text navigation
and some emacs-ish Control bindings that work in native widgets.
Patch from Michael Hutchinson.
(cherry picked from commit ccf12f7b40
)
This commit is contained in:
parent
f6d78bf879
commit
7f80ee3a38
@ -83,6 +83,41 @@ binding "gtk-mac-entry"
|
||||
class "GtkEntry" binding "gtk-mac-entry"
|
||||
|
||||
|
||||
binding "gtk-mac-cmd-arrows"
|
||||
{
|
||||
bind "<meta>Left" { "move-cursor" (paragraph-ends, -1, 0) }
|
||||
bind "<meta>KP_Left" { "move-cursor" (paragraph-ends, -1, 0) }
|
||||
bind "<shift><meta>Left" { "move-cursor" (paragraph-ends, -1, 1) }
|
||||
bind "<shift><meta>KP_Left" { "move-cursor" (paragraph-ends, -1, 1) }
|
||||
bind "<meta>Right" { "move-cursor" (paragraph-ends, 1, 0) }
|
||||
bind "<meta>KP_Right" { "move-cursor" (paragraph-ends, 1, 0) }
|
||||
bind "<shift><meta>Right" { "move-cursor" (paragraph-ends, 1, 1) }
|
||||
bind "<shift><meta>KP_Right" { "move-cursor" (paragraph-ends, 1, 1) }
|
||||
}
|
||||
|
||||
class "GtkTextView" binding "gtk-mac-cmd-arrows"
|
||||
class "GtkLabel" binding "gtk-mac-cmd-arrows"
|
||||
class "GtkEntry" binding "gtk-mac-cmd-arrows"
|
||||
|
||||
|
||||
binding "gtk-mac-emacs-like"
|
||||
{
|
||||
bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
|
||||
bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
|
||||
bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
|
||||
bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }
|
||||
|
||||
bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
|
||||
bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
|
||||
bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
|
||||
bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }
|
||||
}
|
||||
|
||||
class "GtkTextView" binding "gtk-mac-emacs-like"
|
||||
class "GtkLabel" binding "gtk-mac-emacs-like"
|
||||
class "GtkEntry" binding "gtk-mac-emacs-like
|
||||
|
||||
|
||||
binding "gtk-mac-file-chooser"
|
||||
{
|
||||
bind "<meta>v" { "location-popup-on-paste" () }
|
||||
|
Loading…
Reference in New Issue
Block a user