From fbe17dc3e3119d5ff15dd8418e1f9fb7c9461d15 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 9 Aug 2025 22:19:45 +0700 Subject: [PATCH] pomodoro: accept event on keybind cuz recommended by qt docs --- .../ii/modules/sidebarRight/pomodoro/PomodoroWidget.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/quickshell/ii/modules/sidebarRight/pomodoro/PomodoroWidget.qml b/.config/quickshell/ii/modules/sidebarRight/pomodoro/PomodoroWidget.qml index b5ee7a597..3aaa868a4 100644 --- a/.config/quickshell/ii/modules/sidebarRight/pomodoro/PomodoroWidget.qml +++ b/.config/quickshell/ii/modules/sidebarRight/pomodoro/PomodoroWidget.qml @@ -22,20 +22,24 @@ Item { } else if (event.key === Qt.Key_PageUp) { currentTab = Math.max(currentTab - 1, 0) } + event.accepted = true } else if (event.key === Qt.Key_Space || event.key === Qt.Key_S) { // Pause/resume with Space or S if (currentTab === 0) { Pomodoro.togglePomodoro() } else { Pomodoro.toggleStopwatch() } + event.accepted = true } else if (event.key === Qt.Key_R) { // Reset with R if (currentTab === 0) { Pomodoro.resetPomodoro() } else { Pomodoro.stopwatchReset() } + event.accepted = true } else if (event.key === Qt.Key_L) { // Record lap with L Pomodoro.stopwatchRecordLap() + event.accepted = true } }