summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-06-20 15:52:58 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-06-20 15:52:58 +0000
commitec0ac46aa869143be91b194e400bf700be9fc558 (patch)
treedec6c63f1902382ed7f66e74073eda9da5b5296f /FL
parent0a6ebfea9dd7c0feecbc590679588f5088fd6f58 (diff)
Move platform specific shortcut code to platform drivers.
Tested on Windows and Linux (not tested on MacOS/Android). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_System_Driver.H10
1 files changed, 8 insertions, 2 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index 5b4f6231f..7a4cc18a7 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -46,12 +46,18 @@ class Fl_Widget;
*/
class FL_EXPORT Fl_System_Driver {
friend class Fl;
+public:
+ struct Keyname {
+ unsigned int key;
+ const char* name;
+ };
protected:
// implement once for each platform
static Fl_System_Driver *newSystemDriver();
Fl_System_Driver();
- struct Keyname {unsigned int key; const char* name;};
- static Keyname table[];
+ // key_table and key_table_size are used in fl_shortcut to translate key names
+ Keyname *key_table;
+ int key_table_size;
public:
virtual ~Fl_System_Driver();
// These flags are useful after calling XParseGeometry(). They indicate which of its arguments