New topic: 

How to make a WebButton detect an 'enter' key?

<http://forums.realsoftware.com/viewtopic.php?t=47809>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: How to make a WebButton detect 
an 'enter' key?Posted: Tue May 07, 2013 12:54 am                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 898                Can anyone tell me how to get WebButton detect an 
'enter' key?

Thanks
Tim   
                             Top                Akiland          Post subject: 
Re: How to make a WebButton detect an 'enter' key?Posted: Tue May 07, 2013 
12:58 am                                 
Joined: Tue Jan 04, 2011 3:02 am
Posts: 1219
Location: Jönköping, Sweden                When do you want to detect the key?
If it's in a TextField you can use this in the KeyPressed event:
If Details.KeyCode = 13 or Details.KeyCode = 3 then
  ' Do what you want!
end if

It will detect both enter and return.      
_________________
 http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
REAL.Studio Web Edition 2011r3  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to