Bug 80657 - need unified shortcuts for tab handling in all KDE applications
Summary: need unified shortcuts for tab handling in all KDE applications
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 53855 71129 73650 80624 82951 86307 90866 107947 271635 283614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-29 22:50 UTC by Helge Hielscher
Modified: 2017-08-18 15:18 UTC (History)
18 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kstdaccel.patc (3.03 KB, patch)
2005-06-23 19:28 UTC, Heinrich Wendel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Hielscher 2004-04-29 22:50:15 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Mandrake RPMs

At the moment every application uses it's own shortcuts for tabs:
-for changing tab some use ALT-Left/Right Arrow, others use Ctrl-Tab/Ctrl-Shift-Tab, others as Konsole uses Shift-Arrows and Konqueror is using Ctrl-[ and Ctrl-]
-for closing tabs some use Ctrl-F4 others Ctrl-W
-for a new tab, sometimes I have to use Ctrl-O, Ctrl-N or Ctrl-Shift-N

Solutions tab-shortcuts should be set at KDE level for all apps that use tabs.
Comment 1 András Manţia 2004-04-29 23:27:52 UTC
*** Bug 80624 has been marked as a duplicate of this bug. ***
Comment 2 Stephan Binner 2004-04-30 20:50:26 UTC
It has often been discussed that Konsole is a special one in this row and cannot obey (as easily) to ctrl-shortcuts as other applications.
Comment 3 Stephan Binner 2004-05-09 12:40:46 UTC
*** Bug 71129 has been marked as a duplicate of this bug. ***
Comment 4 Stephan Binner 2004-06-12 12:52:47 UTC
*** Bug 82951 has been marked as a duplicate of this bug. ***
Comment 5 Stephan Binner 2004-07-31 10:55:27 UTC
*** Bug 86307 has been marked as a duplicate of this bug. ***
Comment 6 Stephan Binner 2004-10-06 23:09:55 UTC
*** Bug 90866 has been marked as a duplicate of this bug. ***
Comment 7 Jakob Petsovits 2004-11-15 13:46:46 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Hackeron 2005-01-14 16:24:37 UTC
Still nothing 3.3.2 -- will this be finished for KDE 4?
Comment 9 Mircea Bardac 2005-06-23 13:50:51 UTC
I was going to create a new bug-report about something similar, but might fit this one, with some minor adjustments.

I am no KDE coder, yet, but...
I would like the tabs widget to provide signals/slots (you know better) on:
-- new tab request
-- close tab request
-- change tab request

Why this?
I believe KDE could have a global config with shortcuts/mouse-clicks (in Control Center) for asking for a new tab, closing a tab, changing tabs etc. Why? Because I'm a bit bored of having to learn each application and their different behaviour. I want something like:
* double-click(configurable) on free space in tab list: new tab
* middle-click(configurable) on tab: close
in all tabs based applications.
(these are only some examples for mouse events)

Imagine that apps could should only define how new tabs get created (there's usually a slot for this) and the dev could only connect the defined slot to the TabWidget's newTabSignal.. and so on.

I would love consistent behaviour throughout all KDE apps which have tabs in their UIs.

I really believe this would make a difference and make KDE feel tight together.
Comment 10 Heinrich Wendel 2005-06-23 19:10:36 UTC
*** Bug 107947 has been marked as a duplicate of this bug. ***
Comment 11 Heinrich Wendel 2005-06-23 19:11:49 UTC
"detach tab" is also needed, they should be implemented as kstdaccels
Comment 12 Heinrich Wendel 2005-06-23 19:28:54 UTC
Created attachment 11559 [details]
kstdaccel.patc
Comment 13 Heinrich Wendel 2005-06-23 19:30:00 UTC
perhaps some kstdactions should be added as well
Comment 14 Marijn Schouten 2006-04-28 14:56:14 UTC
tomorrow this is two years old :(
Comment 15 Gábor Nagy 2007-05-30 11:49:19 UTC
Stephan Binner wrote some 3 years ago:
>It has often been discussed that Konsole is a special one in this row and
>cannot obey (as easily) to ctrl-shortcuts as other applications.

Actually I haven't tried to change konsole's shortcuts. But I have changed others to work like konsole. Now I change tabs in my konqueror with shift-arrows, create a new tab with ctrl-alt-n

I think it won't be a problem to have each application its own set of shortcuts, as it is done today. But it is very important that all application have the same defaults, and that there should be a place in the control center that lets you change the setting in question in all installed applications.

Which means that all applications should check the default on one place, and each can override the default, if the user wants to.
Comment 16 Jorge Adriano 2008-11-28 10:42:54 UTC
*** Bug 53855 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2009-12-30 20:41:03 UTC
*** Bug 73650 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2011-10-09 20:11:31 UTC
*** Bug 283614 has been marked as a duplicate of this bug. ***
Comment 19 Jimmy Kloss 2013-03-06 20:48:45 UTC
May I share my view on this subject. It’s very true that terminal emulators can’t simply use arbitrary key bindings as the program running in the terminal might use as well. E.g. Ctrl+C comes into mind, which in the GUI world means to copy a selection, but in the CLI world means to abort the running program. OTOH user experience is key, nobody wants to learn how to do the exact same thing in different programs all over again. I think we can agree on that.

Luckily I see a solution as far as switching tabs are concerned.

Ctrl+PgUp --> Previous Tab
Ctrl+PgDown --> Next Tab

Major 3rd party apps already use these key bindings to switch tabs. Namely Firefox and Chrome/Chromium and both have a greater user base than KDE SC, so this should met user expectations. Also I’m not aware of any terminal application that uses these key bindings. Either they are older than the PgUp and PgDown keys (vi) or they use the keys without modifier to simply scroll the page (elinks). Even other terminal emulators are already using these key bindings e.g. the gnome and xfce terminals. 

As for tab consistency over the KDE SC… I have konqueror, dolphin and konsole running, with tabs open and they all look different. At least konsole has it’s own implementation for tabs, as one can see while moving them around with the mouse. I would say having one tab implementation for all KDE apps to share is desirable.

Chromium has a great way of dealing with tabs, also Firefox copied it. All tabs are of the same size and have a tiny x-shaped, which fades to a red close button on mouse hover, on the right side. If you close one they get re-arranged in a way that the next tab lands on same spot where the closed one was. This way you can close multiple tabs by clicking multiple times without moving the cursor.

OTOH, I also like tabs of individual length in dolphin, to show the whole folder name. A solution to have the best of both worlds, would be to open new tabs on the left side instead of right. Merging the static icon on the left and the (on mouse over) color changing close button on the right to an icon that dynamically fades into a close button on mouse over, which resides on the left side. 
This way the existing “New Tab Button” can be useful (finally), the tab length may or may not vary from tab to tab and the closing tabs behavior would be on par usability wise with modern browsers, without being a plain copy.
Comment 20 Christoph Feck 2014-10-26 15:44:58 UTC
*** Bug 271635 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2017-08-16 16:00:45 UTC
This is still a problem in 2017. I will mention that I've set Konsole to use ctrl+pgup/pgdn and it works just fine, so that's not a problem.

The "standard" keyboard shortcuts for changing tabs that seem to be adopted by cross-platform software (e.g. Firefox, Chromium) are ctrl+tab/shift+ctrl+tab and ctrl+pgup/ctrl+pgdn. Also, all of GNOME software also uses ctrl-pgup/ctrl+pgdn. We might want to therefore consider trying to standardize on the following:

- Primary:   ctrl+tab  & shift+ctrl+tab
- Secondary: ctrl+pgup  & ctrl+pgdn


It would be great to get a discussion going on this. Whatever people agree on, I can do the work to drive adoption across KDE apps.
Comment 22 Nate Graham 2017-08-16 17:29:16 UTC
Actually, it looks like this was recently fixed in https://phabricator.kde.org/D6553 for KDE programs using KStandardShortcut::tabNext() and KStandardShortcut::tabPrev(), which many common KDE programs are already using. I checked, and this should affect:

- Kate
- Dolphin
- Konversation
- Konqueror

Konsole does not use those macros, so it will need another change. For that, I have filed https://bugs.kde.org/show_bug.cgi?id=383603

I'm going to mark this issue as resolved, and we can track any straggler apps not using KStandardShortcut::tabNext() and KStandardShortcut::tabPrev() with their own bugs.