Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324102

Summary: Backspace key, delete key and tab stop working when my application is minimized
Product: [Eclipse Project] Platform Reporter: Zachary <zachary2232>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: eclipse.felipe, hang.tran, joe.pucci, kruti.sheth, mkoso, remy.suen
Version: 4.0Flags: Silenio_Quarti: review+
Target Milestone: 3.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Java Project
none
patch none

Description Zachary CLA 2010-08-31 11:24:23 EDT
I have a swt form.

I a swt browser control displaying a silverlight application.

I have focus in a textbox.

I minimize the swt form.

I maximize the swt form.

My textbox in the silverlight application still has focus.

I can type letters.

Backspace no longer works.

I hit delete and focus is set to a tabstrip control on my swt form instead of the next textbox.

Please feel free to contact us with what additional information is needed.
Comment 1 Remy Suen CLA 2010-08-31 11:57:47 EDT
Do you have code to share that will reproduce the problem easily?

What version of SWT are you using? Are you on a 32-bit or 64-bit installation of your operating system?
Comment 2 Kruti CLA 2010-09-23 16:37:27 EDT
Created attachment 179488 [details]
Java Project

We are using 32 bit
The attachement consists of the following
Java Project - IngenixComponentsTester
Steps to replicate issue
1)Launch the Java app. You should be able to see the silverlight application embedded insisde the control. 
3)Enter text into the textbox that says Title and then minimize the application
4)Now maximize the application. You will notice that the textbox loses focus. Set the focus back by clicking in the textbox. When you try using the backspace or delete key, it will not let you do so.
5)Set the focus to a control on the Java app and then set the focus back to the textbox. Now you will be bale to use the backspace/delete/tab keys.
Comment 3 Zachary CLA 2010-09-29 15:09:16 EDT
(In reply to comment #2)
> Created an attachment (id=179488) [details]
> Java Project
> 
> We are using 32 bit
> The attachement consists of the following
> Java Project - IngenixComponentsTester
> Steps to replicate issue
> 1)Launch the Java app. You should be able to see the silverlight application
> embedded insisde the control. 
> 3)Enter text into the textbox that says Title and then minimize the application
> 4)Now maximize the application. You will notice that the textbox loses focus.
> Set the focus back by clicking in the textbox. When you try using the backspace
> or delete key, it will not let you do so.
> 5)Set the focus to a control on the Java app and then set the focus back to the
> textbox. Now you will be bale to use the backspace/delete/tab keys.

Any news?
Comment 4 Zachary CLA 2010-09-29 15:09:47 EDT
(In reply to comment #1)
> Do you have code to share that will reproduce the problem easily?
> 
> What version of SWT are you using? Are you on a 32-bit or 64-bit installation
> of your operating system?

Kruti's code will reproduce the problem easily. Any news?
Comment 5 Kruti CLA 2010-10-13 13:06:17 EDT
Any updates on this issue?
Comment 6 Felipe Heidrich CLA 2010-10-13 13:58:20 EDT
(In reply to comment #5)
> Any updates on this issue?

The problem seems to happen inside of the silverlight application, I can't debug that (not sure if SWT is at fault in this case).


Grant, do we do anything special to Backspace key, delete key and tab stop in the embed browser that could be affecting the silverlight app in it.
Comment 7 Kruti CLA 2010-10-13 15:19:32 EDT
A standalone silverlight app does not display this issue. We have tested this with a stand alone silverlight app that has a single textbox in it and it works fine, but when its tested inside a java swt control it stops working as expected. Microsoft has also confirmed that this is not a Silverlight issue. I have seen a lot of issue thats have been logged abouth the backspace/delete/tab keys not working with the SWT controls. Any help that you could provide with this will be greatly appreciated.
Comment 8 Kruti CLA 2010-11-05 14:20:56 EDT
I tried to recreate the issue by embedding a Flash page within the SWT control and was able to do so. This leads me to believe that this might not be an issue with silverlight. Any help that you can provide will be greatly appreciated.
Comment 9 Grant Gayed CLA 2010-11-08 16:42:42 EST
Created attachment 182666 [details]
patch
Comment 10 Grant Gayed CLA 2010-11-08 16:44:25 EST
Fixed in the 3.7 stream > 20101108.

Targetting for 3.6.2.  If the change does not seem to cause any new problems in the 3.7 stream in the coming weeks then this will be backported to the 3.6.2 stream.
Comment 11 Silenio Quarti CLA 2011-01-12 09:45:19 EST
+1 for 3.6.2. I will include this in RC2.
Comment 12 Grant Gayed CLA 2011-01-12 10:19:06 EST
released to the 3.6.2 stream > 20110112