Bug 367376

Summary: The fn modifier key is not processed as a modifier key.
Product: [Eclipse Project] Platform Reporter: Doug M <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.felipe, Mike_Wilson, remy.suen, Silenio_Quarti
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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).