From 07a877fa6e7144deb4b92e82de658c42d91c933a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 29 Mar 2014 12:33:36 -0400 Subject: Updated the GTK+ implementation and test programs to reflect the new KeyEvent setup. --- test/kbtest.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/kbtest.go') diff --git a/test/kbtest.go b/test/kbtest.go index 600215e..747764e 100644 --- a/test/kbtest.go +++ b/test/kbtest.go @@ -49,10 +49,8 @@ func (a *keyboardArea) Key(e KeyEvent) (handled bool, repaint bool) { defer a.lock.Unlock() switch { -// case e.Key != 0: -// markkey(a.kbd, keypoints[e.Key], e.Modifiers) - case e.ASCII != 0: - markkey(a.kbd, keypoints[e.ASCII], e.Modifiers) + case e.Key != 0: + markkey(a.kbd, keypoints[e.Key], e.Modifiers) case e.ExtKey != 0: markkey(a.kbd, extkeypoints[e.ExtKey], e.Modifiers) case e.Modifiers != 0: -- cgit v1.2.3