Bug 327541 - konsole loses keyboard focus, need to use mouse to regain it
Summary: konsole loses keyboard focus, need to use mouse to regain it
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.11.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 02:40 UTC by Marcelo Vanzin
Modified: 2018-03-07 04:30 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Vanzin 2013-11-13 02:40:33 UTC
When hitting a certain sequence of keystrokes (which I often do when my fingers slip off the keys), konsole stops responding to the keyboard, and the only way to go back is to click on the konsole window with the mouse.


Reproducible: Always

Steps to Reproduce:
1. have at least another window opened aside from konsole
2. on an open konsole window, hit "alt" and release it. This causes the focus to go to the menu bar. This is ok and works as expected; if you hit "alt" again, focus goes back to the terminal, but don't do that now.
3. while focus is on the menu bar, hit alt-tab and switch to the other app
4. now hit alt-tab again to go back to konsole.

Actual Results:  
Nothing I do with the keyboard works; esc, alt, or anything. To regain focus, I need to click on the konsole window.

Expected Results:  
 I should be able to use the keyboard to control konsole.
Comment 1 Christoph Feck 2013-11-14 03:22:57 UTC
Is this really caused by the menu bar? In other words, if you hide the menu bar, does it never happen?
Comment 2 Marcelo Vanzin 2013-11-14 04:00:15 UTC
Just tried it; if you hide the menu bar, step (2) doesn't do anything (i.e. focus never leaves the terminal window when you hit alt), so the bug doesn't happen.
Comment 3 Kurt Hindenburg 2013-11-16 15:11:45 UTC
Well #2 doesn't even do that here on any of my systems.  Are you running a different windows manager or full KDE (kubuntu)?
Comment 4 Marcelo Vanzin 2013-11-17 03:02:58 UTC
I happens on both systems I use (both running the latest KDE with kwin).

BTW the behavior I described in step (2) seems to be common to all apps - so maybe there's a setting to disable it, although I haven't looked. (It allows you to navigate the menu bar without having to use the mouse, so it's pretty useful.) The difference in konsole is that if I do (3) and (4) I can't use the keyboard anymore until I click on the window. I just tried the same thing with Amarok and I can use the keyboard after alt-tabbing back to the Amarok window.
Comment 5 Kurt Hindenburg 2014-02-28 13:57:46 UTC
Do you have Configure Konsole->Enable menu accelerators checked?

No matter what I do on 4.11/4.12/etc I can't reproduce.
Comment 6 Marcelo Vanzin 2014-03-01 07:05:10 UTC
No, I don't have that option enabled. If I enable it, though, it behaves pretty much the same way. Only difference is that when focus goes back to the konsole window (step 4 in my original comment), it's as if the "alt" key is pressed, even though it isn't. e.g., if I hit the "f" key, the file menu comes down.

I tried to record a video of the bug but it's kinda hard to see in the video, since the tool doesn't show keyboard activity or mouse clicks visually... if you think that still helps I can upload it.
Comment 7 yves.caniou 2015-02-25 21:03:55 UTC
Same here with Konsole-4.14.3.
Comment 8 Ahmad Samir 2018-03-06 21:21:51 UTC
This might be caused by the "Sticky Keys" accessibility feature (systemsettings -> Accessibility -> Modifier Keys.

Closing as KDE4/konsole is no longer maintained. Feel free to reopen if you can still reproduce it with a currently supported konsole version.
Comment 9 yves.caniou 2018-03-07 04:30:15 UTC
(In reply to Ahmad Samir from comment #8)
> This might be caused by the "Sticky Keys" accessibility feature
> (systemsettings -> Accessibility -> Modifier Keys.
> 
> Closing as KDE4/konsole is no longer maintained. Feel free to reopen if you
> can still reproduce it with a currently supported konsole version.

It wasn't for this reason.
But the problem is resolved for konsole 17.08.03 and the consequent KDE packages.