Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows [message #1063775] |
Fri, 14 June 2013 08:05 |
Angelo ZERR Messages: 122 Registered: July 2009 |
Senior Member |
|
|
Hi E4 Team,
I would like to use SWT Mozilla Browser in a 3.x ViewPart in E4 (see my project https://github.com/angelozerr/CodeMirror-Eclipse)
My problem is that Ctrl+C, Ctrl+X, Ctrl+A doesn't work (if you try to copy/paste some content in the textarea, it does nothing) in a HTML textarea if SWT Browser Mozilla is created in an E4 Application (it works great with Eclipse 3.7).
For your information, Ctrl+Z, Ctrl+Y works great.
I have posted on E4 forum (and not in SWT forum) because I think it's a problem with E4 and not with SWT. I tell that because I have done several tests with Ctrl+C, Ctrl+X, Ctrl+A in an HTML textarea :
* Java Main + Browser with SWT.NONE => WORKS
* Java Main + Browser with SWT.MOZILLA => WORKS
* E4 IDE + Browser with SWT.NONE created in a 3.x ViewPart => WORKS
* E4 IDE + Browser with SWT.MOZILLA created in a 3.x ViewPart => DOESN'T WORKS
For E4, I have tested with 4.2 (it throws an exception NotHandledException in E4HandlerProxy like explained at http://www.eclipse.org/forums/index.php/t/457360/), 4.2-SR2 and 4.3 (none exception are thrown with those version).
An intersting test I have done too is that I have added a KeyListener :
browser = new Browser(shell, SWT.MOZILLA);
browser.addKeyListener(new KeyListener() {
@Override
public void keyReleased(KeyEvent e) {
}
@Override
public void keyPressed(KeyEvent e) {
System.err.println(e);
}
});
When you do Ctrl+C in Java main, there are have 2 traces (Ctrl+C), but in a E4 with ViewPart 3.x, I have one trace. I have debugged Mozilla#HandleEvent and I have checked that 2 event are thrown with Ctrl+C.
That's why I think there is somewhere in the E4 code, which doesn't dispatch correctly the message.
Many thank's for your help.
Regards Angelo
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02207 seconds