| Summary: | Exception occurs when setting an accelerator on menus | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Matthias Nick <Matthias.Nick> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | hiromu.hota, ivan | ||||||
| Version: | 2.2 | ||||||||
| Target Milestone: | 2.2 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Matthias Nick
Created attachment 237225 [details]
Demo class with F11
The special (non letters - F1-F12) keys are not converted to string correctly - see AcceleratorBinding#acceleratorAsString. So what should I in order to get F1 to F12 working in RAP? (In reply to Matthias Nick from comment #3) > So what should I in order to get F1 to F12 working in RAP? I'm working on a fix :-). Great :-) Let me know when you're done. Fixed in master with commit 7da14b9045e8ece9fb509e584dd3f48d3c707f6b. I have a menu with accelerator of F4. The issue is that this menu is invoked even when Enter (CR) key is pressed-down. I found that when these keys are pressed-down the following KeyEvent is issued: F4 (event.type=SWT.KeyDown, event.character='' (0), event.keyCode=16777229 (0x100000D), stateMask=0) Enter=CR (event.type=SWT.KeyDown, event.character='\r', event.keyCode=13 (0xD), stateMask=0) F4(0x100000D) can be (char) casted to 0xD, then matches Enter (CR). I hope you could take a look. If this is reproducible with latest RAP 3.3 relase please open a new bugzilla. |