Bug 367376 - The fn modifier key is not processed as a modifier key.
Summary: The fn modifier key is not processed as a modifier key.
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 18:35 EST by Doug M CLA
Modified: 2019-03-07 01:02 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug M CLA 2011-12-21 18:35:11 EST
Build Identifier: swt-3.8M3-cocoa-macosx-x86_64

SWT does not process the fn modifier key that has appeared on laptops for the past decade.

OS X correctly delivers the fn key to Control.flagsChanged as keycode = 63. Display.translateKey lacks this number in KeyTable and returns 0. The following switch statement in flagsChanged needs a branch for SWT.FN, which should be defined and added the list of modifiers and modifier mask.

Thanks!

Reproducible: Always

Steps to Reproduce:
1. Install a keyDown event filter.
2. Press the 'fn' key.
3. Nothing happens.
Comment 1 Felipe Heidrich CLA 2012-01-11 14:35:37 EST
Maybe I wrong, but isn't the FN+key used only by the system ?
In other words, are user application allowed/recommend using FN+Key combination ?
(I suspect not since FN is not present in all keyboards).