RosettaCodeData/Task/GUI-enabling-disabling-of-controls/LiveCode/gui-enabling-disabling-of-controls-4.livecode
2016-12-05 23:44:36 +01:00

9 lines
289 B
Text

on rawKeyDown k
if numToChar(k) is among the items of "1,2,3,4,5,6,7,8,9,0" then
if (numToChar(k) + the text of me) <= 10 then
enableButtons (numToChar(k) + the text of me)
end if
else if k = 65288 then
pass rawKeyDown
end if
end rawKeyDown