Bug 442390 - [GTK/Linux] Keyboard input is not recognized
Summary: [GTK/Linux] Keyboard input is not recognized
Status: CLOSED DUPLICATE of bug 435742
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 09:42 EDT by Philip Wenig CLA
Modified: 2015-05-06 16:22 EDT (History)
4 users (show)

See Also:


Attachments
Focus Package Explorer (21.06 KB, image/png)
2014-08-26 03:49 EDT, Philip Wenig CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Wenig CLA 2014-08-22 09:42:56 EDT
Hi folks,

I discovered that the keybord input is not recognized by the "Package Explorer" in the current milestone: 4.5M1.

My system:
Ubuntu Linux 12.04 - up to date (all updates installed)
x86_64
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1~0.12.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

It's hard to detect when and how it occurs, but I found a solution how to make it work again. That hopefully gives a hint to the problem, e.g.:

F2 "Rename Java Project" on a plugin
If there is no response: click once in the editor area, then it works but only for the next action.

I'll post more information as far as I understand how and when it happens.
Comment 1 Markus Keller CLA 2014-08-22 10:46:28 EDT
Are you sure the Package Explorer really has focus? Bug 325937 / bug 378672 make it hard to see in E4 themes. Try pressing Ctrl+Tab / Ctrl+Shift+Tab to find out where the focus really is when the problem occurs.

Bug 312568 is about focus problems in GTK the other way 'round (focus goes back to Package Explorer after opening an editor).

The Package Explorer doesn't do anything special with respect to focus / command processing. Moving to Platform UI. Problem may also be in SWT or GTK.
Comment 2 Philip Wenig CLA 2014-08-22 11:38:37 EDT
As the plugin to be renamed has been selected manually, I thought the focus is automatically set to "Package Explorer". Am I wrong?

But I will try to monitor the focus to see if it's not set correctly.
Comment 3 Markus Keller CLA 2014-08-22 13:58:36 EDT
(In reply to Philip Wenig from comment #2)
> As the plugin to be renamed has been selected manually, I thought the focus
> is automatically set to "Package Explorer". Am I wrong?

The focus should indeed be in the view that was last clicked. But if something goes wrong, then anything can be wrong :-)

It could e.g. be that the Package Explorer looks active, but the focus is either nowhere (so Ctrl+Tab doesn't move it), or it could be in another view/editor/toolbar. Or if it's not a focus problem, then it could be a command handler activation problem, or just a key bindings problem, etc.
Comment 4 Philip Wenig CLA 2014-08-26 03:49:30 EDT
Created attachment 246338 [details]
Focus Package Explorer
Comment 5 Philip Wenig CLA 2014-08-26 03:49:46 EDT
Hi Markus,

I'm able to reproduce the error now. The focus seems to be on the maximize button of the "Package Explorer" if a plugin has been selected in the "Package Explorer". F2 doesn't work. But after pressing Ctrl+Shift+Tab once, the focus is on the minimize button, see attached screenshot. It finally works after pressing Ctrl+Shift+Tab as long as the "Package Explorer" has been reached. Could this problem be part of the compatibility layer?
Comment 6 Lars Vogel CLA 2015-05-06 16:22:14 EDT
Marking as Dup of Bug 435742, as Linux now has several lost keybindings.

*** This bug has been marked as a duplicate of bug 435742 ***