diff --git a/gtk/gtk-keys.css.mac b/gtk/gtk-keys.css.mac index 49c1ad9b29..c3cef9dc03 100644 --- a/gtk/gtk-keys.css.mac +++ b/gtk/gtk-keys.css.mac @@ -59,6 +59,31 @@ unbind "a"; } +@binding-set gtk-mac-cmd-arrows +{ + bind "Left" { "move-cursor" (paragraph-ends, -1, 0) }; + bind "KP_Left" { "move-cursor" (paragraph-ends, -1, 0) }; + bind "Left" { "move-cursor" (paragraph-ends, -1, 1) }; + bind "KP_Left" { "move-cursor" (paragraph-ends, -1, 1) }; + bind "Right" { "move-cursor" (paragraph-ends, 1, 0) }; + bind "KP_Right" { "move-cursor" (paragraph-ends, 1, 0) }; + bind "Right" { "move-cursor" (paragraph-ends, 1, 1) }; + bind "KP_Right" { "move-cursor" (paragraph-ends, 1, 1) }; +} + +@binding-set gtk-mac-emacs-like +{ + bind "a" { "move-cursor" (paragraph-ends, -1, 0) }; + bind "a" { "move-cursor" (paragraph-ends, -1, 1) }; + bind "e" { "move-cursor" (paragraph-ends, 1, 0) }; + bind "e" { "move-cursor" (paragraph-ends, 1, 1) }; + + bind "b" { "move-cursor" (logical-positions, -1, 0) }; + bind "b" { "move-cursor" (logical-positions, -1, 1) }; + bind "f" { "move-cursor" (logical-positions, 1, 0) }; + bind "f" { "move-cursor" (logical-positions, 1, 1) }; +} + @binding-set gtk-mac-file-chooser { bind "v" { "location-popup-on-paste" () }; @@ -94,15 +119,15 @@ iconview { } textview { - -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-alt-delete, gtk-mac-cmd-c, gtk-mac-text-view; + -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-alt-delete, gtk-mac-cmd-c, gtk-mac-cmd-arrows, gtk-mac-emacs-like, gtk-mac-text-view; } entry { - -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-alt-delete, gtk-mac-cmd-c, gtk-mac-entry; + -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-alt-delete, gtk-mac-cmd-c, gtk-mac-cmd-arrows, gtk-mac-emacs-like, gtk-mac-entry; } label { - -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-label; + -gtk-key-bindings: gtk-mac-alt-arrows, gtk-mac-cmd-arrows, gtk-mac-emacs-like, gtk-mac-label; } GtkFileChooserWidget {