From 36656517e6646a0bd8c287040ec57438cc686890 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 30 Oct 2002 01:01:53 +0000 Subject: Unswapped MacOS modifier keys. event_key and event_text should return the expected values now. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/osissues.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'documentation/osissues.html') diff --git a/documentation/osissues.html b/documentation/osissues.html index 51be95f30..6c1720f84 100644 --- a/documentation/osissues.html +++ b/documentation/osissues.html @@ -591,6 +591,15 @@ the above systems without changes. The OS X GNU (gcc) compiler, however, creates Mach-O binaries which are not supported by MacOS 9 and earlier. +

control, option and command modifier keys

+ +

FLTK maps the Mac 'control' key to FL_CTRL, the 'option' key +to FL_ALT and the 'Apple' key to FL_META. Keyboard events return +the key name in Fl::event_key and the keystroke translation in +Fl::event_text. For example, typing Option-Y on a Mac keyboard +will set FL_ALT in Fl::event_state, set Fl::event_key to 'y' +and return the Yen symbol in Fl::event_text. +

WindowRef fl_xid(const Fl_Window *)

Returns the window reference for an Fl_Window, or -- cgit v1.2.3