Warning Nerd Post–disregard if you’re not an AIRhead. I’ve been working on a little AIR app and had a helluva time trying to get a NativeMenuItem keyboard shortcut set up for “Save As” functionality. The thing is I wasn’t trying to do anything difficult. I was setting the keyboardEquivalent to lower case “s” and then explicitly setting the keyEquivalentModifiers to COMMAND + SHIFT on OS X or CONTROL + SHIFT on Windows. Things were peachy on OS X, but not so great on Windows (XP is all I tested). On Windows the caps lock must be on (despite the lowercase key equivalent). So after dropping the f-bomb a handful of times, debating whether to gouge my own eyeballs out and tweeting my rage I seriously dug into the documentation looking for an answer.

It wasn’t easy, but after giving up on the language reference (what I like to think of as help) I started digging through the additional help / getting started materials. Sure enough, there was a rather cryptic hint of unexpected cross platform weirdness (aka AIR inconsistency). Turns out you need to explicitly set the accelerator modifiers for OS X and then use an uppercase letter for Windows and let AIR / OS automatically add the modifiers (some very warped thinking if you ask me).

Call me crazy, but I thought AIR was supposed to eliminate all this OS twilight zone time.