Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367849

Summary: Shortcuts and functional keys stop working
Product: [Eclipse Project] Platform Reporter: Stefan Drzazga <stefan.drzazga>
Component: UIAssignee: Remy Suen <remy.suen>
Status: VERIFIED FIXED QA Contact: Paul Webster <pwebster>
Severity: major    
Priority: P3 CC: nazgee, pwebster, remy.suen
Version: 4.2   
Target Milestone: 4.2 M5   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
the error log from my eclipse none

Description Stefan Drzazga CLA 2012-01-04 08:53:04 EST
Build Identifier: I20120103-1230

After the update to I20120103-1230 this morning my eclipse stops working after a while when I use shortcuts. I have to restart it that it works again for a few minutes. The are exceptions in the log, but i can't tell if they are the root cause for this.

Reproducible: Always

Steps to Reproduce:
1. start eclipse
2. work in java classes
3. use shortcuts (e.g. open type), F3, F4, delete key
Comment 1 Stefan Drzazga CLA 2012-01-04 08:55:24 EST
Created attachment 209006 [details]
the error log from my eclipse
Comment 2 Paul Webster CLA 2012-01-04 09:36:07 EST
I'm seeing this as well.

PW
Comment 3 Remy Suen CLA 2012-01-04 13:28:30 EST
Same on Windows 7. Going to try a new build.
Comment 4 Remy Suen CLA 2012-01-04 13:38:22 EST
(In reply to comment #3)
> Same on Windows 7. Going to try a new build.

A fresh unzip doesn't have the problem.

Restarting my original install also made the problem go away.
Comment 5 Remy Suen CLA 2012-01-04 16:14:32 EST
When the error occurs, my system has multiple binding tables but only one table has stuff in it, containing 24 bindings. This table includes bindings like Ctrl+A and Ctrl+F10.

From what I've found thus far, the workaround is to use 'Window > New Window' and use the new window instead.
Comment 6 Remy Suen CLA 2012-01-05 09:23:25 EST
When I check the system while it is in this state, there are a few valid binding tables in the application but a lot more _empty_ binding tables that have no element id

// output of >> table.getElementId() + "\t"+ t.getBindings().size()
// many more empty tables, truncated for clarity
null    0
null    0
null    0
null    0
null    0
null    0
null    0
null    0
null    0
null    0
null    0
org.eclipse.ui.contexts.window  101
org.eclipse.ui.textEditorScope  43
org.eclipse.jdt.ui.javaEditorScope      24
org.eclipse.ant.ui.AntEditorScope       4
org.eclipse.pde.ui.pdeEditorContext     2
org.eclipse.debug.ui.BreakpointView     1
org.eclipse.debug.ui.debugging  7
org.eclipse.debug.ui.memory.abstractasynctablerendering 3
org.eclipse.debug.ui.memoryview 5
org.eclipse.jdt.ui.propertiesEditorScope        3
org.eclipse.jdt.ui.breadcrumbEditorScope        1
org.eclipse.egit.ui.RepositoriesView    1
Comment 7 Remy Suen CLA 2012-01-05 09:39:38 EST
These steps seem to work for reproducing the problem.

1. Ctrl+Shift+R > Open some file
2. Alt+Tab to another window.
3. Alt+Tab back to Eclipse.
4. Ctrl+W to close the editor.
5. Alt+Left to reopen it. It will not reopen. At this point, keybindings will stop working (for the most part) minus the stuff mentioned in comment 5.
Comment 8 Remy Suen CLA 2012-01-05 09:56:16 EST
(In reply to comment #7)
> 1. Ctrl+Shift+R > Open some file
> 2. Alt+Tab to another window.
> 3. Alt+Tab back to Eclipse.
> 4. Ctrl+W to close the editor.
> 5. Alt+Left to reopen it. It will not reopen. At this point, keybindings will
> stop working (for the most part) minus the stuff mentioned in comment 5.

Can skip steps 2 and 3. Bug caused by the fix for bug 366600.

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=c612044e0bb6e5ca9d93643f913a9a1e621b3b1f
Comment 10 Remy Suen CLA 2012-01-06 09:41:32 EST
Hi Stefan, the problem should be fixed with the latest 4.2.0.I20120105-2100 build.

You can update your install with p2 using this update site.
http://download.eclipse.org/eclipse/updates/4.2-I-builds
Comment 11 Stefan Drzazga CLA 2012-01-06 09:54:33 EST
(In reply to comment #10)
> Hi Stefan, the problem should be fixed with the latest 4.2.0.I20120105-2100
> build.
> 
> You can update your install with p2 using this update site.
> http://download.eclipse.org/eclipse/updates/4.2-I-builds

Thanks. Works for me now.
Comment 12 Remy Suen CLA 2012-01-24 11:21:14 EST
Verified with I20120123-2200 on Windows 7.
Comment 13 Michal Stawinski CLA 2015-01-22 12:21:01 EST
The same for me: linking file with editor seems to resolve keyboard issues (thanks for the workaround).