Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: resources/gtkrc

Issue 6086008: theme: Unbind GtkTextView's Ctrl-Shift-Delete accelerator. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/theme.git@master
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: resources/gtkrc
diff --git a/resources/gtkrc b/resources/gtkrc
index 1c945ba8904d9d6c39a33ea14590314ec30a817c..a739318c81ae9cfc030e62354addb43dfeaf5b3d 100644
--- a/resources/gtkrc
+++ b/resources/gtkrc
@@ -144,9 +144,21 @@ widget "*.chromeos-options-tab" style "WhiteBackgroundStyle"
widget "*.chromeos-options-tab*.GtkEventBox" style "WhiteBackgroundStyle"
+# NOTE: The keysym names in the below bindings are case-sensitive; they
+# must match the corresponding GDK #defines, e.g. GDK_slash, GDK_Delete,
+# etc. (The modifier names are case-insensitive, though.)
+
# GTK+ hardcodes Ctrl-/ to select all text, just like Ctrl-A. Unbind it
# here so we can bind it ourselves to do something else in Chrome.
binding "UnbindControlSlash" {
- unbind "<Control>slash"
+ unbind "<control>slash"
}
class "*" binding "UnbindControlSlash"
+
+# GtkTextView binds Ctrl-Shift-Delete to delete all text to the end of the
+# current paragraph. We unbind it here so it can be used to open the
+# "Clear Browsing Data" dialog while the omnibox has the focus.
+binding "UnbindControlShiftDelete" {
+ unbind "<control><shift>Delete"
+}
+class "*" binding "UnbindControlShiftDelete"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698