Don't include various wacky key modifiers in our conversion routine. We

only care about Shift, Control and Alt (Mod1).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@678 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-03-19 00:22:31 +00:00
parent 0af3fcf8dd
commit 53d25e736b
+6 -5
View File
@@ -1,5 +1,5 @@
# #
# $Id: keyval_util.py,v 1.1 2002/03/17 09:03:06 mdb Exp $ # $Id: keyval_util.py,v 1.2 2002/03/19 00:22:31 mdb Exp $
# #
# lookuplet - a utility for quickly looking up information # lookuplet - a utility for quickly looking up information
# Copyright (C) 2001 Michael Bayne # Copyright (C) 2001 Michael Bayne
@@ -21,10 +21,11 @@
import string import string
import GDK import GDK
# these are used when doing our conversion # these are used when doing our conversion; we specifically only care
_CODES = [ GDK.CONTROL_MASK, GDK.LOCK_MASK, GDK.SHIFT_MASK, GDK.MOD1_MASK, # about Control, Shift and Mod1; if you want to use other keys in your
GDK.MOD2_MASK, GDK.MOD3_MASK ]; # combinations, we don't want you drinking our soda
_NAMES = [ "Control", "Lock", "Shift", "Mod1", "Mod2", "Mod3" ]; _CODES = [ GDK.CONTROL_MASK, GDK.SHIFT_MASK, GDK.MOD1_MASK ];
_NAMES = [ "Control", "Shift", "Mod1" ];
# #
# Converts a (keyval, state) pair to a human readable string. # Converts a (keyval, state) pair to a human readable string.