| Summary: | [firefox] right-clicking outside of the selection causes the caret to move | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mihai Sucan <mihai.sucan> |
| Component: | Editor | Assignee: | Mihai Sucan <mihai.sucan> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, mihai.sucan |
| Version: | unspecified | ||
| Target Milestone: | 0.4 M2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Mihai Sucan
Proposed change: https://github.com/mihaisucan/orion.client/tree/bug-366312 We can't use preventDefault(), so the only solution I came up with was to update the DOM selection when needed. Please let me know if further changes are needed. Thank you! Looks fine, not sure I would worry about the "if (timeDiff <= this._clickTime)" test, go ahead and release it. Thank you (In reply to comment #2) > Looks fine, not sure I would worry about the "if (timeDiff <= this._clickTime)" > test, > > go ahead and release it. Thank you for reviewing the code! Landed: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ea880f5922f1bcdf09fd5fa1e9d238355d36cf89 The timeDiff check is needed for when you right-click then you press the contextmenu key after some long delay. The workaround to call _updateDOMSelection() is only needed when the context menu is invoked from right-click within the allocated time. |