From 81139106f75bc06f45e9e579f9c6400d0eeb8940 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 21:09:43 +0200 Subject: Ctrl+PgUp/PgDn cycle tabs from anywhere in the window QTabWidget's built-in binding only works with focus on the tab bar, and the table views take page keys. Window-level shortcuts, wrapping. Co-Authored-By: Claude Opus 5.5 --- tests/test_gui.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/test_gui.py b/tests/test_gui.py index 482d8b4..bf9177a 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -383,6 +383,18 @@ class SmokeTest(unittest.TestCase): w.dashboard.jobs.clicked.emit() self.assertIs(w.tabs.currentWidget(), w.jobs_tab) + def test_tab_shortcuts_wrap(self): + w, _ = self.window() + w.poll_jobs() + w.open_packages() + w.open_jobs() + nxt, prev = w.tab_next, w.tab_prev + self.assertEqual((nxt.key().toString(), prev.key().toString()), ("Ctrl+PgDown", "Ctrl+PgUp")) + nxt.activated.emit() + self.assertEqual(w.tabs.currentIndex(), 0) # wrapped from Jobs to Dashboard + prev.activated.emit() + self.assertEqual(w.tabs.currentIndex(), 2) + def test_log_carriage_return(self): w, _ = self.window() jobs = w.open_jobs() -- cgit v1.2.3