Arrow KeyCodes in OnGUI always accompanied by EventModifiers.FunctionKey?

In optimizing our extension’s input handling, I noticed that arrow keys:
KeyCode.UpArrow
KeyCode.DownArrow
KeyCode.LeftArrow
KeyCode.RightArrow
all come with the Event.current.modifiers set to EventModifiers.FunctionKey by default. I’ve currently verified that this happens on OSX (MacBook Pro) with Unity 4.5.5 and 4.6.7 and Windows 8.1 (VirtualBox) with Unity 4.5.5.

Is this the expected functionality? If so, anyone know why are arrow keys defined as Function Keys?

See Unity - Scripting API: Event.functionKey .

1 Like

Roughly 1.5 years later! Thanks so much for pointing this out! Super helpful.