type
KeyEnum* {. pure .} = enum
A = 44,
B = 45,
apps = 72,
add = 85,
back = 2,
C = 46,
cancel = 1,
capital = 8,
capsLock = 8,
clear = 5,
D = 47,
d0 = 34
But compiler says it is invalid order. I want to arrange my code alphabetical order for future maintenance. How to fix this error ?since i want to get "keys.A" style.
Keep it in its own module then and use from keys import nil.