Invisible selected text for not focused editor [message #870143] |
Sun, 06 May 2012 20:48  |
Eclipse User |
|
|
|
Hi,
In Firefox browser, selected text is transparent when the editor does not have focus.
This is due to this code in textview.js
if (isFirefox || isIE) {
if (this._selDiv1) {
var color = "transparent";
this._selDiv1.style.background = color;
this._selDiv2.style.background = color;
this._selDiv3.style.background = color;
if (window.getSelection) {
var sel = window.getSelection();
if (sel.rangeCount > 0) { sel.removeAllRanges(); }
}
}
}
This can cause problems. For instance lets say there is a search window available. When user is directed to this window, selected text would be invisible as the editor doesn't have focus!,...
Is there any work around for this?
P.S: I know that in Scratchpad even when the editor doesn't have focus selected text is visible. I couldn't figure out how they did this. Though, the Orion structure on Scratchpad is kind of different from original one (there is one extra FRAME element,...)
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04027 seconds