Is there any difference between these two events?

Posted in Help the coder! on Sep 3, 2009 at 01:38 IST (about 1 year ago). Subscribe to this post Bookmark and Share Email
Showing comments 1 to 3 of total 3 on page 1 of 1
Post reply
« Previous1Next »

turkish
Rank: 224

KeyDown and KeyPress.. Is there any big difference between these two events?

Posted by turkish on Thursday, September 3, 2009, 1:38 am
  • Currently 0.00/5

0 votes

Thank this userFlag this comment

xtrmprgrmr
Rank: 7

Keydown is pressing the key without releasing it, Keypress is a complete press-and-release cycle.

Put another way, KeyDown KeyUp = Keypress

Posted by xtrmprgrmr on Thursday, September 3, 2009, 2:12 am
  • Currently 0.00/5

0 votes

Thank this userFlag this comment

johnsamuel
Rank: 66

KeyPress is a higher level of abstraction than KeyDown (and KeyUp). KeyDown and KeyUp are hardware related: the actual action of a key on the keyboard. KeyPress is more "I received a character from the keyboard".

Posted by johnsamuel on Thursday, September 3, 2009, 5:27 am
  • Currently 0.00/5

0 votes

Thank this userFlag this comment
Pages: « Previous1Next »

Post your comment (No registration required)

  Add my comment  

TechieDesi Community

Not signed in (Sign-in or Register)
Be a true TechieDesi!
Top 10 Users
Spread the word
Invite your friends
Fan stuff
Help us improve
Need Help
FAQ's
Search tips
Found a bug? Report!
Feeds and letters
Subscribe via RSS
Archives
Subscribe to newsletter
Unsubscribe e-mail
Miscellaneous
Privacy policy
Visit rootnerve
About us
About us
Support the development
Official Blog
Advertise with us
Careers
Copyright (c) 2008, TechieDesi.com. All rights reserved | About us | Do-Not-Disturb registry | Powered by rootnerve | Page rendered in 0.284 seconds