From 7317fcf723fe0c633bbca890d996c6213fab121f Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 12 Jun 2019 14:20:06 +0200 Subject: allow page increments with control key --- src/ui/widget/spinbutton.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/widget/spinbutton.cpp') diff --git a/src/ui/widget/spinbutton.cpp b/src/ui/widget/spinbutton.cpp index 130cd6c39..3f99dd2cc 100644 --- a/src/ui/widget/spinbutton.cpp +++ b/src/ui/widget/spinbutton.cpp @@ -73,6 +73,9 @@ bool SpinButton::on_my_scroll_event(GdkEventScroll* event) } double step, page; get_increments(step, page); + if (event->state & GDK_CONTROL_MASK) { + step = page; + } double change = 0.0; if (event->direction == GDK_SCROLL_UP) { change = step; -- cgit v1.2.3