[kupfer: 36/51] keybindings: Only send non-None keystrings



commit 95ee390ff2113c00f994d86e6708ca351b0e45fb
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Mar 28 16:51:47 2011 +0200

    keybindings: Only send non-None keystrings

 kupfer/ui/keybindings.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/keybindings.py b/kupfer/ui/keybindings.py
index 0c7c84b..70efc58 100644
--- a/kupfer/ui/keybindings.py
+++ b/kupfer/ui/keybindings.py
@@ -51,7 +51,7 @@ gobject.signal_new("bound-key-changed", KeyboundObject, gobject.SIGNAL_RUN_LAST,
 _currently_bound = {}
 
 def get_all_bound_keys():
-	return list(_currently_bound.values())
+	return filter(bool, _currently_bound.values())
 
 def get_current_event_time():
 	"Return current event time as given by keybinder"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]