Author Topic: Qkeyevent For "fn"  (Read 5345 times)

koan

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • http://www.lyndonhill.com
Qkeyevent For "fn"
« on: May 22, 2010, 05:35:55 pm »
Hi

What is the QKeyEvent for the Fn key as a modifier in the Sharp ROM ?

I tried checking QKeyEvent::state() == Qt::ControlButton but this didn't work.

If anyone knows I can save some time.

Thanks
Zocalo Feed Reader : Thai on Zaurus : Dictionaries for zbedic : Sharp ROM package feed
HELUX Handheld Embedded Linux Blog
SL-C3200 Multiboot : SL-C750  Sharp ROM

koan

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • http://www.lyndonhill.com
Qkeyevent For "fn"
« Reply #1 on: May 23, 2010, 04:53:17 pm »
The answer is that the Fn key does not work as a modifier, at least not under the Sharp ROM. There is no QKeyEvent::state() change when you use Fn+(another key).

For the record, Fn alone has a key() value of 4165 and Fn pressed in combination with another key will generate key() values of ~ 100-200.
Zocalo Feed Reader : Thai on Zaurus : Dictionaries for zbedic : Sharp ROM package feed
HELUX Handheld Embedded Linux Blog
SL-C3200 Multiboot : SL-C750  Sharp ROM