- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
What is the proper way to destroy a VirtualKeyboard?
Read 191 times

MFusion Swing KBoard   Offline
YaBB Newbies
*
Posts: 11
I Love MindFusion!


   
     
 
What is the proper way to destroy a VirtualKeyboard?
May 1st, 2019 at 8:53pm
 
Disposing of a parent component containing a VirtualKeyboard places the VirtualKeyboard into a strange state where it rapidly and repeatedly generates infinite keystrokes.  Setting the parent component to invisible appears to be a workaround, but I prefer to destroy the VirtualKeyboard.
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 1744
Gender: male
tech.support


   
     
 
Re: What is the proper way to destroy a VirtualKeyboard?
Reply #1 - May 2nd, 2019 at 12:56pm
 
Are you disposing the parent frame in response to keyboard's keyPressed event? Then the keyboard might not receive a mouseReleased message from whose handler it stops the auto-repeat timer.
 
 
 
IP Logged    
 
     

MFusion Swing KBoard   Offline
YaBB Newbies
*
Posts: 11
I Love MindFusion!


   
     
 
Re: What is the proper way to destroy a VirtualKeyboard?
Reply #2 - May 2nd, 2019 at 4:08pm
 
Good comment - thank you.  So, how best to dispose of the keyboard?
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 1744
Gender: male
tech.support


   
     
 
Re: What is the proper way to destroy a VirtualKeyboard?
Reply #3 - May 3rd, 2019 at 9:01am
 
If that's the case, we'll add some method to stop the auto-repeat timer. Meanwhile try waiting for mouseReleased event before disposing the parent frame, the keyboard should stop it automatically at that point.
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 1744
Gender: male
tech.support


   
     
 
Re: What is the proper way to destroy a VirtualKeyboard?
Reply #4 - May 3rd, 2019 at 9:14am
 
This build adds keyboard's own dispose method -
https://mindfusion.eu/_temp/JKeyboard.zip

Try calling it along with the frame's one.

Regards,
Slavcho
 
 
 
IP Logged    
 
     

MFusion Swing KBoard   Offline
YaBB Newbies
*
Posts: 11
I Love MindFusion!


   
     
 
Re: What is the proper way to destroy a VirtualKeyboard?
Reply #5 - May 3rd, 2019 at 11:53am
 
Thanks! I tried it and it works!!
 
 
« Last Edit: May 3rd, 2019 at 1:58pm by MFusion Swing KBoard »
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print