diff --git a/osx/gtkrc b/osx/gtkrc index 0c229ad1..9579fcc3 100644 --- a/osx/gtkrc +++ b/osx/gtkrc @@ -439,3 +439,81 @@ binding "gtk-mac-expand-collapse-cursor-row" bind "Left" { "expand-collapse-cursor-row" (0, 0, 0) } bind "Right" { "expand-collapse-cursor-row" (0, 1, 0) } } + +binding "gtk-osx-editable" +{ + bind "a" { + "move-cursor" (buffer-ends, -1, 0) + "move-cursor" (buffer-ends, 1, 1) + } + + unbind "a" + + bind "c" { "copy-clipboard" () } + bind "x" { "cut-clipboard" () } + bind "v" { "paste-clipboard" () } + + unbind "c" + unbind "x" + unbind "v" + + bind "Left" { "move-cursor" (display-line-ends, -1, 0) } + bind "KP_Left" { "move-cursor" (display-line-ends, -1, 0) } + bind "Left" { "move-cursor" (display-line-ends, -1, 1) } + bind "KP_Left" { "move-cursor" (display-line-ends, -1, 1) } + + bind "Right" { "move-cursor" (display-line-ends, 1, 0) } + bind "KP_Right" { "move-cursor" (display-line-ends, 1, 0) } + bind "Right" { "move-cursor" (display-line-ends, 1, 1) } + bind "KP_Right" { "move-cursor" (display-line-ends, 1, 1) } + + unbind "Left" + unbind "KP_Left" + unbind "Left" + unbind "KP_Left" + unbind "Right" + unbind "KP_Right" + unbind "Right" + unbind "KP_Right" + + bind "Right" { "move-cursor" (words, 1, 0) } + bind "KP_Right" { "move-cursor" (words, 1, 0) } + bind "Left" { "move-cursor" (words, -1, 0) } + bind "KP_Left" { "move-cursor" (words, -1, 0) } + bind "Right" { "move-cursor" (words, 1, 1) } + bind "KP_Right" { "move-cursor" (words, 1, 1) } + bind "Left" { "move-cursor" (words, -1, 1) } + bind "KP_Left" { "move-cursor" (words, -1, 1) } + + bind "delete" { "delete-from-cursor" (word-ends, 1) } + bind "KP_delete" { "delete-from-cursor" (word-ends, 1) } + bind "backspace" { "delete-from-cursor" (word-ends, -1) } + + bind "Down" { "move-cursor" (buffer-ends, 1, 0) } + bind "Down" { "move-cursor" (buffer-ends, 1, 1) } + bind "KP_Down" { "move-cursor" (buffer-ends, 1, 0) } + bind "KP_Down" { "move-cursor" (buffer-ends, 1, 1) } + + bind "Up" { "move-cursor" (buffer-ends, -1, 0) } + bind "Up" { "move-cursor" (buffer-ends, -1, 1) } + bind "KP_Up" { "move-cursor" (buffer-ends, -1, 0) } + bind "KP_Up" { "move-cursor" (buffer-ends, -1, 1) } + + unbind "Down" + unbind "KP_Down" + unbind "Down" + unbind "KP_Down" + unbind "Up" + unbind "KP_Up" + unbind "Up" + unbind "KP_Up" +} + +binding "gtk-osx-tree-view" +{ + bind "s" { "start-interactive-search" () } + unbind "s" +} + +class "GtkEntry" binding "gtk-osx-editable" +class "GtkTreeView" binding "gtk-osx-tree-view"