Cocoa: Fix function key handling
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 16 Mar 2012 11:32:37 +0000 (12:32 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sun, 18 Mar 2012 15:09:31 +0000 (16:09 +0100)
commit4dbce2a469608194527188a136baa3e812caf361
tree3d3e2b77f2b002465ef1cad2b96394066ab1672f
parent60c59b5cf57612216cb55fbfbe6e3ceebcda18e7
Cocoa: Fix function key handling

Cocoa sends function keys (e.g. arrow keys, backspace, F1-F35, etc.) as
Unicode characters in the U+F700-U+F8FF range. Do not deliver text for
events that contain a single control character (to match Qt 4 behavior).
With this fix, keyboard navigation works again in Qt Creator when
running against Qt 5.

Change-Id: I5854bf713c2855dbc5ee491bace2f9dc1acd9426
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/qnsview.mm