From 4042047358c4a9ebb8f61007ec27c7f66fd0a79e Mon Sep 17 00:00:00 2001
From: Matthias Melcher int Fl_Menu_::add(const char* label, const
-char* shortcut, Fl_Callback*, void *user_data=0, int flags=0)
+char* shortcut, Fl_Callback*, void *user_data=0, int flags=0)
+int Fl_Menu_::add(const char* label, int shortcut, Fl_Callback*,
+void *user_data=0, int flags=0)
Adds a new menu item, with a title string, shortcut
string, callback, argument to the callback, and flags. If
@@ -129,6 +131,24 @@ this new one. Otherwise this new one is added to the end of the
correct menu or submenu. The return value is the offset into the array
that the new entry was placed at.
Shortcut can be 0L, or either a modifier/key combination (for example +FL_CTRL+'A') or a string describing the shortcut in one of two ways:
+ ++ [#+^]+..whereeg. "97", "^97", "+97", "#97" + [#+^] eg. "a", "^a", "+a", "#a" +
+ # - Alt + + - Shift + ^ - Control ++Text shortcuts are converted to integer shortcut by calling +int fl_old_shortcut(const char*). +
The return value is the index into the array that the entry was put.