From: Matthijs Kooijman Date: Tue, 3 Nov 2009 14:10:08 +0000 (+0100) Subject: Allow keynames to be None. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5f9ae3ba1ab56fc86f1f362b5ea712b672b0b50f;p=matthijs%2Fupstream%2Fmobilegtd.git Allow keynames to be None. Previously, only the empty string would be "no shortcut". --- diff --git a/src/gui/gui.py b/src/gui/gui.py index 20f4d05..cf9536b 100644 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -62,7 +62,7 @@ def applicable_functions(obj,allowed_function_names): return [eval('obj.%s'%function_name) for function_name in function_names] def get_key(key_name): - if key_name == '': + if not key_name: key = None else: key=eval('EKey%s'%key_name)