Keyboard shortcuts
Posted: Mon May 02, 2011 4:09 pm
Hello,
Got a bit of a problem:
Or even:
Ideally I want to set up shortcuts like RAMIGA+P = parent, RAMIGA+N = create new drawer, but I can't even read LCONTROL or even LSHIFT on this amigaone keyboard. Help doesn't even say anything about the Amiga keys to tbh so I don't if I can do that, but a control key would be nice at least. Help!?
Got a bit of a problem:
Code: Select all
installeventhandler({OnKeyDown = p_keyboardShortcuts})
while fileselected = false
waitevent
wend
function p_keyboardShortcuts(msg)
switch msg.action
case "OnKeyDown"
if iskeydown("LCONTROL") = true
debugprint(msg.key)
endif
endswitch
endfunction
Code: Select all
if msg.key = "p" and iskeydown("LCONTROL") = true; Parent
debugprint(msg.key)
endif