objective c - How to check if Option key is down when user clicks a NSButton -
i have few checkboxes along textfields on nspanel opens user parameters. option, i'd user able set/unset checkboxes on panel holding option key when press of checkboxes.
i'm not sure where/how check key board doing when user clicks button.
check [nsevent modifierflags]...
if ([nsevent modifierflags ] & nsalternatekeymask) { //do }
Comments
Post a Comment