about functionKeys[solved]

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
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

about functionKeys[solved]

Post by atout66 » Mon Apr 06, 2015 10:39 am

Hi to all,
In my simple code below, I load the help file by pressing the key F1.

Code: Select all

on functionKey theKey
     switch theKey
         case 1 -- AIDE
etc...
But what to write in that script if i want the user to press for example (under Windows) the keys Ctrl+Uppercase+F1 to load a special help file ?

Thanks in advance.
Last edited by atout66 on Mon Apr 06, 2015 4:15 pm, edited 1 time in total.
Discovering LiveCode Community 6.5.2.

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

Re: about functionKeys

Post by SparkOut » Mon Apr 06, 2015 1:17 pm

Code: Select all

on functionKey theKey
   switch theKey
      case 1
         if the controlKey is down and the shiftKey is down then
            -- do special help thing
         else
            -- do regular F1 help thing, maybe pass functionKey?
         end if
         break
      default
         pass functionKey
   end switch
end functionKey

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: about functionKeys

Post by atout66 » Mon Apr 06, 2015 4:15 pm

Waou ! great addon, thanks a lot ;-)
Discovering LiveCode Community 6.5.2.

Post Reply