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

Bug 285656

Summary: [Widgets] Eclipse framework incorrectly assumes keys that have digits on them will be referred to in the shortcut table as digit keys (Ms Windows only)
Product: [Eclipse Project] Platform Reporter: Fei Wang <feiwang>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: normal    
Priority: P3 CC: daniel_megert, Silenio_Quarti
Version: 3.4   
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Fei Wang CLA 2009-08-05 01:12:17 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1.Create application that have an accelerate key Ctrl+-
2.Launch application,and switch keyboard layout to French(France)
3.stike Ctrl+6 / Ctrl+-. neither Ctrl+6 nor Ctrl+- works.( '-' is mapped to '6' in French(France) keyboard layout )


More information:
Comment 1 Felipe Heidrich CLA 2009-08-06 14:22:08 EDT
are you using real acceleratos (MenuItem.setAccelerator) or are you using key down filter instead (like Eclipse does) ?

please attach a snippet that reproduces the problem. Thank you.
Comment 2 Fei Wang CLA 2009-08-06 20:51:12 EDT
(In reply to comment #1)
> are you using real acceleratos (MenuItem.setAccelerator) or are you using key
> down filter instead (like Eclipse does) ?
> please attach a snippet that reproduces the problem. Thank you.


To assign shortcut keys, we use the bindings extension point in our plugin.xml. A snippet would look something like this:

<extension point="org.eclipse.ui.bindings">
    <key
        commandId="some.command.id"
        contextId="org.eclipse.ui.contexts.window"
        schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
        sequence="M1+-" />
</extension>
Comment 3 Felipe Heidrich CLA 2009-08-07 11:45:03 EDT
Fixed in HEAD > 20090807


Please verify the fix in the next week I-Build. Thank you.

(bug caused by Bug 219582)
Comment 4 Fei Wang CLA 2009-08-11 01:07:28 EDT
Is your fixing included in Ecipse 3.6 build I20090809-2000? Will your fixing be integrated into Eclipse 3.4 build?
Comment 5 Felipe Heidrich CLA 2009-08-11 08:33:12 EDT
(In reply to comment #4)
> Is your fixing included in Ecipse 3.6 build I20090809-2000?

There was no I-build on 2009/08/09
This will be available here
http://download.eclipse.org/eclipse/downloads/drops/I20090811-0800/index.php

If you don't mind testing N-build you can try this one:
http://download.eclipse.org/eclipse/downloads/drops/N20090810-2000/index.php


> Will your fixing be integrated into Eclipse 3.4 build?
No as we don't have builds for 3.4 anymore.

The best I can do for you is to give a patch with the fix for R3.4.maintenance.