From 16f9a0e47e62a2afb358d694bf08a33dfdb990ee Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Sun, 2 Dec 2012 21:01:13 +0100 Subject: [PATCH] change IDRectItem hotkeys to new "API" --- sloth/items/items.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sloth/items/items.py b/sloth/items/items.py index c8ebdc3..9c3a5f7 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -530,10 +530,10 @@ class OccludablePointItem(PointItem): class IDRectItem(RectItem): - cycleValuesOnKeypress = dict( - [('i', (IgnorePrefix('id'), range(36)))] + - [(str(i), (IgnorePrefix('id'), [i])) for i in range(10)] + - [(chr(i-10+65).lower(), (IgnorePrefix('id'), [i])) for i in range(10, 36)] + hotkeys = dict( + [('i', cycleValue(IgnorePrefix('id'), range(36)))] + + [(str(i), cycleValue(IgnorePrefix('id'), [i])) for i in range(10)] + + [(chr(i-10+65).lower(), cycleValue(IgnorePrefix('id'), [i])) for i in range(10, 36)] ) defaultAutoTextKeys = ['id']