Page 1 of 1

Key code in Livecode ?

Posted: Wed May 18, 2011 4:01 am
by QuangNgo
Hi guys
I'm developing the application with livecode but I still have a problem in my project
Do you know how to find the key code? for example I have a datagrid and I would like it delete record in specific row as I click on "delete"
on key board . Do you guys have any ideas for that problem
Thanks a lot for reading my post
Quang

Re: Key code in Livecode ?

Posted: Wed May 18, 2011 6:02 am
by Dixie
Hi...

put this in a card script, press some keys and see what numbers it gives to you...

Code: Select all

on rawKeyDown theKey
   put theKey
end rawKeyDown
be well

Dixie

Re: Key code in Livecode ?

Posted: Wed May 18, 2011 10:27 am
by SparkOut
Check "deleteKey" and "backspaceKey" messages. (Also tabKey, commandKey, controlKey, etc. Many "utiliatarian" keys will have a message automatically sent when pressed, as well as the rawKeyDown/rawKeyUp type.)

Re: Key code in Livecode ?

Posted: Wed May 18, 2011 2:06 pm
by QuangNgo
Thanks a lot SparkOut

I just know "deleteKey" a few hours ago but your reply is more useful

Thanks

Quang :D