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

Bug 339709

Summary: [editor][chrome] Shift-Tab in editor loses editor focus
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, Silenio_Quarti
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-03-11 10:42:12 EST
I20110310

- Select multiple indented lines of text in the editor.
- Hit Shift+Tab to remove indent

-> Focus has shifted to the outline view. I have to click back in the editor to gain focus to continue working in the editor. It looks like the browser is capturing the keypress and shifting focus out of the editor.
Comment 1 Silenio Quarti CLA 2011-03-11 13:34:50 EST
I have not been able to reproduce this problem.
Comment 2 John Arthorne CLA 2011-03-14 13:38:31 EDT
So far it only seems to happen in HTML files. I see this exception in the console when it happens:

Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
Editor._setDOMSelectioneditor.js:3715
Editor._updateDOMSelectioneditor.js:3956
Editor._setSelectioneditor.js:3781
Editor.setSelectioneditor.js:1429
editor.setAction.isMoveFromLastLineeditorContainer.js:830
Editor._doActioneditor.js:2010
Editor._handleKeyDowneditor.js:1654
Editor._hookEvents._handlers.handlereditor.js:3281
Comment 3 John Arthorne CLA 2011-03-14 13:50:46 EDT
Here are steps that produce it for me:

Start with an html file like this:

<html>
<head>
</head>
<body>
</body>
</html>

- Ensure the outline view is expanded
- With cursor at start of line 3, hit Shift+Down twice to select two lines
- Hit Tab to indent selection
- Move cursor back to start of line 3 (without holding Shift, so selection is lost)
- Hit Shift+Down twice
- Hit Shift+Tab to remove indent

-> The indentation is changed, but now focus is in the outline. The above error appears in the console.
Comment 4 Silenio Quarti CLA 2011-03-18 13:58:53 EDT
I still cannot reproduce it. Which chrome version and os?
Comment 5 John Arthorne CLA 2011-03-18 17:16:34 EDT
Chrome 10.0.648.133 

Windows 7
Comment 6 Felipe Heidrich CLA 2011-05-06 15:43:57 EDT
John, I'm also unable to reproduce this problem.
We released a bunch of code today that might have fixed this problem, please try again.
If the bug is still happening to you please come see me or Silenio.
Comment 7 John Arthorne CLA 2011-05-06 16:20:28 EDT
It works with latest.