Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/keyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard.py')
-rw-r--r--keyboard.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboard.py b/keyboard.py
index 5c0f04f..81eaa5e 100644
--- a/keyboard.py
+++ b/keyboard.py
@@ -534,7 +534,9 @@ class KeyboardWidget(KeyboardData, gtk.DrawingArea):
image = k['key-image-altgr']
elif self.active_state == gtk.gdk.SHIFT_MASK|gtk.gdk.MOD5_MASK:
image = k['key-image-shift-altgr']
-
+ else:
+ continue
+
self.window.draw_image(gc, image, 0, 0, x1, y1, x2-x1, y2-y1)
# Draw overlay images.