Commit 10e877d8 authored by Jose Aliste's avatar Jose Aliste

shell: Unbind Ctrl-Left and Ctrl-Right from the scrolledwindow

Bug #727529 was introduced when fixing #676040. The rational of
the latter fix is to forward keypress events to the focused
widget before processing Application shortcuts. This allows that
if, for e.g., you Ctrl+left on the search entry, then you jump
between words instead of the default Rotate left action. This is
the intended behavior.

But GtkScrolledWindow binds Ctrl-Left and Ctrl-Right. Hence,
these actions are handled instead of the Rotate left and Rotate right shortcuts defined by the application in the case the horizontal scrollbar is visible.

This is not intended, so unbinding these shortcuts
with CSS allows to Ctrl left and ctrl right to rotate independent of whether
the scrollbars are visible or not.

This solves
parent 589ff448
......@@ -51,6 +51,15 @@ iconview {
-gtk-key-bindings: MoveCursor;
@binding-set HorizontalScroll {
unbind "<Control>Right";
unbind "<Control>Left";
scrolledwindow {
-gtk-key-bindings: HorizontalScroll;
evpresentationview {
background-color: black;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment