Bug 157039

Summary: shift + tab gives focus to tab bar
Product: [Applications] konsole Reporter: Alex Merry <alex.merry>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: andreas.sahlbach, charlyghislain, inform, rgo, roland.leissa
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Merry 2008-01-31 17:37:54 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

Rather than sending the character to the terminal program on the terminal, as you would expect, typing shift + tab causes the terminal to lose focus.  Any keyboard input after this is lost until focus is returned to the terminal (either by clicking or with tab).

It's not apparent what gains focus in this case (pressing a few random keys produced no effect).
Comment 1 Constantin Berzan 2008-07-25 11:25:41 UTC
The tab bar gains focus in this case. Pressing the arrow keys changes tabs (but only once, since it gives the focus to the terminal).
Comment 2 Kurt Hindenburg 2008-08-11 00:04:57 UTC
Confirmed on trunk.  Is this the desired result?  It seems strange that shift+tab only lasts for 1 tab change.   I don't see why Konsole needs another shortcut to change tabs.
Comment 3 Robert Knight 2008-08-11 02:28:04 UTC
I think this is something from Qt but I haven't looked into it closely.
Comment 4 Roland Leißa 2008-11-24 04:30:16 UTC
Same problem here. I find this bug very annoying as I use shift + tab quite often in Vim's command line.
Comment 5 Andreas Klöckner 2008-12-01 00:51:23 UTC
Me too. A fix would be much appreciated.
Comment 6 charly ghislain 2009-01-29 00:18:35 UTC
The shortcut can be changed from Shortcuts Settings but this has no effect
Comment 7 charly ghislain 2009-01-29 00:22:42 UTC
Bug present in konsole 2.2, KDE 4.2.60 (KDE 4.3 >= 20090116)
Comment 8 Rafa G. 2009-03-19 00:34:24 UTC
Another vim user that need a fix. Thanks!
Comment 9 Rafa G. 2009-10-13 11:13:11 UTC
Bug present in konsole 2.3, KDE 4.3.1 (KDE 4.3.1 >= 20091012)

Any news?
Comment 10 Andreas Sahlbach 2009-10-13 11:36:45 UTC
Sure. Bug is annoying as hell but is ignored close to 2 years now.
Comment 11 Rafa G. 2009-10-13 11:59:48 UTC
(In reply to comment #10)
> Sure. Bug is annoying as hell but is ignored close to 2 years now.

so I sent this comment.I like konsole but I have to use Terminal(xfce) for this bug :-/

ouchh two years without konsole and I'm waiting for it :-)
Comment 12 Kurt Hindenburg 2009-10-13 17:05:52 UTC
If anyone can try this patch, it appears to work in my quick testing.

Index: ViewContainer.cpp
===================================================================
--- ViewContainer.cpp	(revision 1034362)
+++ ViewContainer.cpp	(working copy)
@@ -429,6 +429,7 @@
     _tabBar = new ViewContainerTabBar(_containerWidget,this);
     _tabBar->setDrawBase(true);
     _tabBar->setDocumentMode(true);
+    _tabBar->setFocusPolicy(Qt::ClickFocus);
 
     _newTabButton = new QToolButton(_containerWidget);
     _newTabButton->setIcon(KIcon("tab-new"));
Comment 13 Kurt Hindenburg 2009-10-14 05:09:50 UTC
This patch appears to work fine.  I'll commit it before the next release.

One thing I noticed if you split the  view, 'shift+tab' will change the split-views.
Comment 14 Rafa G. 2009-10-14 08:39:13 UTC
(In reply to comment #13)
> This patch appears to work fine.  I'll commit it before the next release.
> 
> One thing I noticed if you split the  view, 'shift+tab' will change the
> split-views.

Perhaps I can try the patch in a un-official package of kde-base. I'll tell you.
Comment 15 Rafa G. 2009-10-16 11:42:37 UTC
(In reply to comment #13)
> This patch appears to work fine.  I'll commit it before the next release.
> 
> One thing I noticed if you split the  view, 'shift+tab' will change the
> split-views.

Sorry, I couldn't try it yet.
I'm eager to return to konsole :) Thanks for the patch
Comment 16 Kurt Hindenburg 2009-10-19 00:16:35 UTC
SVN commit 1037396 by hindenburg:

Fix issue where Shift+Tab would focus tab bar.

BUG: 157039


 M  +1 -0      ViewContainer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1037396
Comment 17 Kurt Hindenburg 2009-10-19 00:18:20 UTC
SVN commit 1037397 by hindenburg:

Fix issue where Shift+Tab would focus tab bar.

CCBUG: 157039


 M  +1 -0      ViewContainer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1037397
Comment 18 Kurt Hindenburg 2009-12-05 18:50:10 UTC
SVN commit 1059061 by hindenburg:

Correct terminal focus issues when clicking on tabbar.

BUG: 215382
CCBUG: 157039


 M  +1 -1      ViewContainer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1059061
Comment 19 Kurt Hindenburg 2009-12-05 18:56:21 UTC
For reference, if you the new and close tab buttons enabled, using SHIFT+Tab will still traverse the 3 widgets (new, close, terminal).