Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349865 - [client][editor][Opera] Pressing Esc makes the caret go away
Summary: [client][editor][Opera] Pressing Esc makes the caret go away
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 15:19 EDT by Boris Bokowski CLA
Modified: 2013-06-21 10:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2011-06-20 15:19:40 EDT
In Opera, when you press Esc, the editor loses focus and the caret goes away. Clicking in the editor doesn't bring the focus back, you have to click somewhere else first and then click in the editor again.
Comment 1 Felipe Heidrich CLA 2011-06-20 15:38:24 EDT
I tried the contentEditable editor in this page http://www.quirksmode.org/dom/execCommand/
and the same problem can be seen.
Comment 2 Felipe Heidrich CLA 2011-06-20 15:39:11 EDT
My Opera:
About Opera
Version information
Version
11.11

Build
2109

Platform
Win32

System
Windows 7

XHTML+Voice
Plug-in not loaded

Browser identification

Opera/9.80 (Windows NT 6.1; U; en) Presto/2.8.131 Version/11.11
Comment 3 Mike Taylor CLA 2011-06-20 16:36:16 EDT
Hmm, I can't reproduce in 11.11 or 11.50 on Mac, or 11.11 (build 2109) on Win 7. Just to be clear, here's what I'm doing:

1) navigate to http://www.quirksmode.org/dom/execCommand/
2) Give focus to "editor" on left, observe blinking caret
3) hit Esc, caret goes away
4) click again in editor, same as before.

Can you reconfirm on the quirksmode page?
Comment 4 Felipe Heidrich CLA 2011-06-20 16:54:58 EDT
I see, it is a bit different between
http://orion.eclipse.org/examples/textview/demo.html
and
http://www.quirksmode.org/dom/execCommand/

In http://www.quirksmode.org/dom/execCommand/
1. click, type something, working fine
2. hit esc, caret is gone, typing does not work
3. click back in the editor area and everything works again


In http://orion.eclipse.org/examples/textview/demo.html
1. click, type something, working fine
2. hit esc, caret is gone, typing does not work
3. Click on the editor does not fixes in the problem.
-- You need to click in another text widget (like the address bar) then click back in the editor to fix the problem.

I dont know what http://www.quirksmode.org/dom/execCommand/ is doing in their code (I would expected it a simple example) but I know  that we (http://orion.eclipse.org/examples/textview/demo.html) have the contentEditable div element inside of an iframe, maybe that explains the difference (but I'm just guessing here).

Tomorrow I can investigate this problem with more time.
Thank you Mike for looking at this problem so quickly.
Comment 5 Silenio Quarti CLA 2013-06-21 10:20:37 EDT
This is no longer a problem in Opera 12.15. The editor loses focus (which is expected in Opera), but clicking on the editor brings it back.