Bug 139672 - UI: Ctrl+Tab switch to most recently used tab
Summary: UI: Ctrl+Tab switch to most recently used tab
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Shortcuts-Accelerators Sheet Sheet-Tabs-Bar
  Show dependency treegraph
 
Reported: 2021-01-16 10:15 UTC by Roland Kurmann
Modified: 2024-04-19 09:26 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Kurmann 2021-01-16 10:15:37 UTC
Description:
It should be possible to switch by Ctrl+Tab (Ctrl-Tab) to the most recently used (MRU) tab in Calc similar to the behavior of Alt+Tab on Windows or KDE Plasma.

Firefox supports switching between tabs in most recently used order by Ctrl+Tab as well. There is an option in the settings to enable it.
KDE Text Kate or Visual Studio Code support Ctrl+Tab in MRU order by default.

If Ctrl+Tab is hold a moment, a tab selection should be shown to choose older tabs (similar to Firefox, Windows or KDE Plasma).

I suggest to add an option for enabling Ctrl+Tab MRU order as in Firefox.

Steps to Reproduce:
1. Create a new spreadsheet with 5 tabs in Calc with names #1, #2, ... #5
3. Click on tab #5
4. Click on tab #2
5. Click on tab #4
6. Click on tab #1
7. Press Ctrl+Tab (with release)
8. Press Ctrl+Tab (with release)
9. Press Ctrl+Tab (with release)
10. Press and hold Ctrl+Tab

Actual Results:
7. Tab #2 is activated
8. Tab #3 is activated
9. Tab #4 is activated
10. Tab #5 is activated

Expected Results:
7. Tab #4 is activated
8. Tab #1 is activated
9. Tab #4 is activated
10. A tab selection overview (overlay) is shown which displays the tabs in most recent used order (as for Winodws, KDE Plasma or Firefox)


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.1
Build ID: 00(Build:1)
CPU threads: 4; OS: Linux 5.3; UI render: GL; VCL: kf5
Locale: de-CH (en_US.UTF-8); UI: de-DE
Calc: threaded
Comment 1 Nikunj Bhatt 2021-03-20 02:19:13 UTC
I also recommend adding this feature. It is very helpful, and particularly when there are many sheets and having long names/titles.
Comment 2 Nikunj Bhatt 2021-03-20 02:19:44 UTC
Also, after reaching to the last sheet by pressing the Ctrl+PgDn, the first sheet should get activated; and after reaching to the first sheet by pressing Ctrl+PgUp, the last sheet should get activated.
Comment 3 Heiko Tietze 2022-04-04 09:34:24 UTC
Let's do it. But please optional, since some people might struggle with this behavior like me (cannot use alt+tab in VSCode, for example).

Could this be an interesting easy hack? => needsDevAdvice
Comment 4 Roland Kurmann 2022-04-10 10:36:27 UTC
> Could this be an interesting easy hack?

I do not think so. It needs some sort of a GUI overlay where all the tabs are shown in most recently used (MRU) order like in Alt-Tab in your operating system (KDE, Windows, ...). Such a GUI overlay seems to be something new in LibreOffice. Copy/Paste and adapting code will not work.

At least, it would need starting points or guidance from experienced GUI developers.