hotKey

I read this example

and figured it was a way to add a hot key , I tried this.

@MenuItem ("GameObject/Do Something %x")
static function DoSomething () {
Debug.Log ("Perform operation");
}

and the menu item works but not the hotkey? What is the best way to make the hotkey work.

%x is already used (that’s Edit/Cut). Try something else that’s not used.

–Eric

OMG I cant not believe I didnt remember that. I tried so many letters and none work, but ctrl 1 did ;)thx…

Is it possible to assign a non-alphanumeric character as a hotkey (and how)?

Like tab, escape, F1, / or space?