Generate events with WXK_NONE Unicode keys for non-characters in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jul 2011 21:54:21 +0000 (21:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jul 2011 21:54:21 +0000 (21:54 +0000)
commite999b903ca76951f79936b639e65a9db5adfce37
tree5c2a89e3fbc79f3f288616085e5efbab8f1d385c
parent66fc8b0e64a5caea19192d24b05d3b4c59443b79
Generate events with WXK_NONE Unicode keys for non-characters in wxOSX.

The keyboard keys not corresponding to real characters, such as cursor arrows
or function keys, must generate wxKeyEvents with WXK_NONE as Unicode key code
to make it possible to distinguish them from the printable characters but
wxOSX generated events with valid Unicode key codes for them instead.

Avoid this by excluding Unicode key codes corresponding to code points in the
Unicode private use area: while this doesn't seem to be documented anywhere,
all non-printable characters seem to have their Unicode representation inside
it.

This change brings wxOSX keyboard event generation in line with the other
ports and, as a side effect, also closes #12423.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/window.mm