Bug 540936 - Focus sometimes permanently lost when performing some actions that modify views
Summary: Focus sometimes permanently lost when performing some actions that modify views
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.9   Edit
Hardware: PC Linux
: P3 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-08 14:25 EST by Michał Zegan CLA
Modified: 2020-08-10 03:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Zegan CLA 2018-11-08 14:25:46 EST
Sometimes when performing some actions, focus is permanently lost. That is similar but not the same to bug 540935, and from what i remember it is linux specific.
To reproduce:
open the console view,
press "open console" preferably by keyboard but this may not matter,
select anything like stacktrace console...
focus is lost. You are not able to regain it unless by clicking by mouse on other focusable item. In particular, you will not be able to regain it with switching views, because most keyboard shortcuts except going to the main menu won't work at all. Well, at least ctrl+f7 for view switching doesn't work and doesn't even display the popup view switcher.
Other ways to trigger this:
- in the console view, try to close the previously opened console by the close console button, or on a console presenting already terminated program press remove launch, anything that opens or closes consoles in the view will probably trigger this, maybe even the terminate button will even though it doesn't automatically close anything.
Also, recently (eclipse 4.9/gtk3), you can trigger exactly the same by just opening any pom.xml with maven pom editor. At least that is what happens to me, symptoms are exactly the same. It didn't happen before, including that if I remember it right it does not happen for gtk2.
Comment 1 Tobias Weißer CLA 2020-08-10 03:47:06 EDT
We observed the same issue in Linux recently. Whenever we close an editor (programatically or 'by hand') the focus is lost and all keyboard commands are not working anymore until we set the focus with the mouse again to the Eclipse IDE.

It is also not enough to switch to another application via [Alt] + [Tab] and then back to the Eclipse IDE, the keyboard commands are still not working unless any UI element is selected by mouse.