Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows
Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows [message #1063775] Fri, 14 June 2013 08:05 Go to next message
Angelo ZERR is currently offline Angelo ZERRFriend
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
Re: Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows [message #1063833 is a reply to message #1063775] Fri, 14 June 2013 12:25 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I tested an internal web browser + the Kepler RC4 and copy and paste
work for me. It might have been fixed towards the end. See

Bug 358018 - [KeyBindings] CMD+C not working in (JDT-)popups
https://bugs.eclipse.org/bugs/show_bug.cgi?id=358018

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm


Re: Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows [message #1063851 is a reply to message #1063833] Fri, 14 June 2013 13:40 Go to previous message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Paul,

Many thank's for your quick reply and your great answer. I have tested with 4.2 and eclipse-SDK-4.3M7-win32 and there are a problem with copy/paste.

I have tested with eclipse-SDK-4.3RC4-win32 as you suggested me, and it work's great!

That's very cool! I will wait for the Kepler release which will fix problem with copy/paste.

Regards Angelo

Previous Topic:Inject problem
Next Topic:P2 update and language switch
Goto Forum:
  


Current Time: Tue Mar 19 09:04:05 GMT 2024

Powered by FUDForum. Page generated in 0.01436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top