Key code in Livecode ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
QuangNgo
Posts: 60
Joined: Thu Mar 31, 2011 8:31 am

Key code in Livecode ?

Post by QuangNgo » Wed May 18, 2011 4:01 am

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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Key code in Livecode ?

Post by Dixie » Wed May 18, 2011 6:02 am

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

SparkOut
Posts: 2946
Joined: Sun Sep 23, 2007 4:58 pm

Re: Key code in Livecode ?

Post by SparkOut » Wed May 18, 2011 10:27 am

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.)

QuangNgo
Posts: 60
Joined: Thu Mar 31, 2011 8:31 am

Re: Key code in Livecode ?

Post by QuangNgo » Wed May 18, 2011 2:06 pm

Thanks a lot SparkOut

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

Thanks

Quang :D

Post Reply