hotkeys for button choices in answer

Roger Eller roger.e.eller at sealedair.com
Mon Sep 3 13:05:17 EDT 2012


On Mon, Sep 3, 2012 at 11:40 AM, Dr. Hawkins wrote:

> On Monday, September 3, 2012, Kay C Lan wrote:
>
> > It would appear that you are limited to the first letter of the button
> and
> > therefore can not have buttons that start with the same letter.
>
>
> After I wrote this, I reflexively hit a Y for yes--and it worked.
>
> No modifiers; just the Y.
> But I only wrote that after it didn't . . .
> so "should" the first letter of a button trigger it, or not?


It appears to only work with 2 choices, and the mnemonic cannot be changed.

on mouseUp
     set the mnemonic of the target to 2 -- should use the second letter
     answer "Which choice?" with "Yes" or "No" or "Maybe" or "Enter for
default"
     answer "You chose" && it
end mouseUp

~Roger



More information about the use-livecode mailing list