]> Pileus Git - ~andy/gtk/commit
quartz: make function keys work (again?)
authorMichael Natterer <mitch@lanedo.com>
Thu, 23 Feb 2012 12:27:09 +0000 (13:27 +0100)
committerMichael Natterer <mitch@gimp.org>
Thu, 23 Feb 2012 12:47:41 +0000 (13:47 +0100)
commit8bef74f8ffdd69ba7541592d74d62946dd49b343
tree165af943181dd9c77c4413bc2f8d1de65b4302dd
parent80674d9dc0772a6f7675e136b7aa59ff30df9450
quartz: make function keys work (again?)

The F keys have no unicode mapping, and UCKeyTranslate() returns
a bogus 0x10 as mapping to unicode. Instead of checking for this
random and undocumented return value, simply assign all function
keys explicitly. This patch also splits the ill-named "known_keys"
array into "modifier_keys" and "function_keys" which is much
more obvious.
(cherry picked from commit 55f9e5cbaf9c5f6761d7bce7a1672bc1552e2f07)
gdk/quartz/gdkkeys-quartz.c