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
Email
Showing comments 1 to 3 of total 3 on page 1 of 1
Post replyShowing comments 1 to 3 of total 3 on page 1 of 1
« Previous1Next »
turkishRank: 224
KeyDown and KeyPress.. Is there any big difference between these two events?
Posted by turkish on Thursday, September 3, 2009, 1:38 am
xtrmprgrmrRank: 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
johnsamuelRank: 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
Pages: « Previous1Next »