| Summary: | QuickAccess should restore previous focus when hitting Escape | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Stefan Mücke <s.muecke> | ||||
| Component: | UI | Assignee: | Dean Roberts <dean.t.roberts> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bokowski, dean.t.roberts, emoffatt, markus.kell.r, pwebster | ||||
| Version: | 4.2 | Flags: | pwebster:
review-
|
||||
| Target Milestone: | 4.2 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 362421, 365753 | ||||||
| Bug Blocks: | 364029 | ||||||
| Attachments: |
|
||||||
|
Description
Stefan Mücke
I agree. ESC should put focus back to where it was. *** Bug 326006 has been marked as a duplicate of this bug. *** Still in I20111110-2200. Created attachment 206868 [details]
Patch to restore previous focus after Esc key
This patch is built on top of 362421 plus 365382.
Functionality does not matter ... but if you don't apply the patches on those 2 defects 1st, this patch will have line number problems.
my usecase: 1) Hit CTRL+3 2) get the key assist dialog and pick Quick Access (I have a conflict) 3) start typing and get the dropdown 4) hit ESC. Now my Search field has focus, for about 2 seconds, and then I get the key assist dialog for ESC (so the ESC key was not being consumed by whatever made the dialog go away). PW Hmm. I don't see this at all running with the latest from HEAD and this patch on Ubuntu 11.10 It works for me if the package explorer has focus. If the editor has focus, then I get the multi-key popup for ESC. If I use key down to start picking a selection and then hit ESC, I don't get out of the dropdown at all. PW Released to master: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=c1f054ce49ad7f9eadc6ab1c63841f538b18d43d This fix works if the user only types characters and then hits escape, focus will go back to the last thing that had focus. However, if the user uses arrow keys to scroll up and down the drop down list and then hits escape focus ends up with the search field text area, and not the previous control. I believe this is related to bug 365753 Confirmed that this was "fixed", and then broken by bug 365753. Since this is not really a duplicate of 365753 I'll set up a dependency relationship and then retest this defect when 365753 is released. Aggregate move to M5. Retarget to a different milestone if you wish... Retested after releasing 365753 and all is well. Focus returns to last view after ESC is pressed in QuickAccess after using the arrow keys to move around. |