[gedit] Override OS X specific keybindings for GeditView
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Override OS X specific keybindings for GeditView
- Date: Wed, 30 Dec 2009 12:51:27 +0000 (UTC)
commit 571acaba8c30c2899ea0ae28b80e327ecc9d9d64
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Wed Dec 30 13:51:09 2009 +0100
Override OS X specific keybindings for GeditView
osx/gtkrc | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/osx/gtkrc b/osx/gtkrc
index bcc2542..e3c20e9 100644
--- a/osx/gtkrc
+++ b/osx/gtkrc
@@ -426,3 +426,29 @@ widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
# See the documentation of the style.
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
+
+# Custom bindings
+binding "gedit-view-mac-bindings"
+{
+ bind "<super>d" {
+ "delete-from-cursor" (GTK_DELETE_PARAGRAPHS, 1)
+ }
+ bind "<super>k" {
+ "start-interactive-search" ()
+ }
+ bind "<super>i" {
+ "start-interactive-goto-line" ()
+ }
+ bind "<super><shift>k" {
+ "reset-searched-text" ()
+ }
+
+ unbind "<ctrl>d"
+
+# Unbinding these somehow makes the others not work, very strange
+# unbind "<ctrl>k"
+# unbind "<ctrl>i"
+# unbind "<ctrl><shift>k"
+}
+
+widget "*GeditView" binding "gedit-view-mac-bindings"
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]