summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-29 13:01:42 -0400
committerPietro Gagliardi <[email protected]>2014-03-29 13:01:42 -0400
commit75acdfd9adb1f62411c17e32949dbd24aa98833f (patch)
treef283b99336dcf7b7b9c452899c0f2c0cff5330dd /area.go
parent84450cfa64b332f580abbf3875642f81076e7d71 (diff)
Re-added the numeric keypad keys to ExtKey and removed predefkeys in area_unix.go since all are now being handled.
Diffstat (limited to 'area.go')
-rw-r--r--area.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/area.go b/area.go
index 3a6b604..05d3361 100644
--- a/area.go
+++ b/area.go
@@ -194,7 +194,7 @@ const (
F10
F11
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
N2
N3
@@ -210,7 +210,7 @@ const (
NSubtract
NMultiply
NDivide
-*/ _nextkeys // for sanity check
+ _nextkeys // for sanity check
)
// EffectiveKey returns e.Key if it is set.
@@ -222,7 +222,7 @@ func (e KeyEvent) EffectiveKey() byte {
if e.Key != 0 {
return e.Key
}
-/* k := e.ExtKey
+ k := e.ExtKey
switch {
case k >= N0 && k <= N9:
return byte(k - N0) + '0'
@@ -239,7 +239,7 @@ func (e KeyEvent) EffectiveKey() byte {
case k == NDivide:
return '/'
}
-*/ return 0
+ return 0
}
// Modifiers indicates modifier keys being held during an event.