Removed the numpad constants pending re-evaluation of how to handle those.

This commit is contained in:
Pietro Gagliardi 2014-03-29 12:33:00 -04:00
parent 0d75303dc3
commit 76d24be6b0
1 changed files with 4 additions and 4 deletions

View File

@ -194,7 +194,7 @@ const (
F10 F10
F11 F11
F12 F12
N0 // numpad keys; independent of Num Lock state /* N0 // numpad keys; independent of Num Lock state
N1 // N0..N9 are guaranteed to be consecutive N1 // N0..N9 are guaranteed to be consecutive
N2 N2
N3 N3
@ -210,7 +210,7 @@ const (
NSubtract NSubtract
NMultiply NMultiply
NDivide NDivide
_nextkeys // for sanity check */ _nextkeys // for sanity check
) )
// EffectiveKey returns e.Key if it is set. // EffectiveKey returns e.Key if it is set.
@ -222,7 +222,7 @@ func (e KeyEvent) EffectiveKey() byte {
if e.Key != 0 { if e.Key != 0 {
return e.Key return e.Key
} }
k := e.ExtKey /* k := e.ExtKey
switch { switch {
case k >= N0 && k <= N9: case k >= N0 && k <= N9:
return byte(k - N0) + '0' return byte(k - N0) + '0'
@ -239,7 +239,7 @@ func (e KeyEvent) EffectiveKey() byte {
case k == NDivide: case k == NDivide:
return '/' return '/'
} }
return 0 */ return 0
} }
// Modifiers indicates modifier keys being held during an event. // Modifiers indicates modifier keys being held during an event.