From af29b756386b3aaf6e7fea3f4c13b35f4c4252b7 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Mon, 11 Nov 2024 20:26:44 +0100 Subject: [PATCH] Both scrollbars need to be able to process the same key event. --- src/yscrollview.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/yscrollview.cc b/src/yscrollview.cc index 03561e196..39f17a9aa 100644 --- a/src/yscrollview.cc +++ b/src/yscrollview.cc @@ -77,8 +77,9 @@ void YScrollView::configure(const YRect2& r) { } bool YScrollView::handleScrollKeys(const XKeyEvent& key) { - return scrollVert->handleScrollKeys(key) - || scrollHoriz->handleScrollKeys(key); + const int v = scrollVert->handleScrollKeys(key); + const int h = scrollHoriz->handleScrollKeys(key); + return bool(v | h); } void YScrollView::handleExpose(const XExposeEvent& expose) {