On my lap-top, the up/down/left/right keys are shared with PgUp/PgDn/Home/End functions. Some apps allow me to use Alt-R to select the second set of functions and I have coded that in my app using Fl::event_key() to detect I am holding Alt-R down while pressing the navigation key. Is there a way to use event_text() instead?
<QUOTE>
From: Manolo
Sent: 17 May 2021 09:36
To: fltk.general
Subject: [fltk.general] Re: Can Fl::event_text() be used for non-text keys?
The OS, not FLTK, is responsible for attaching 2 effects behind a single key. On my
keyboard, pressing the "up arrow" key produces Fl::event_key() = FL_Up
while pressing "function" and the "up arrow" keys simultaneously produces Fl::event_key() = FL_Page_Up.
FLTK perceives the second situation exactly as with an extended keyboard equipped with 2 distinct keys.
</QUOTE>
Thanks Manolo,
I thought I had tested Fn + Up, but obviously not as I see it generates PgUp
Phil.