mirror of
https://github.com/wassname/sloth.git
synced 2026-07-01 23:33:49 +08:00
change IDRectItem hotkeys to new "API"
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user