Using FL_COMMAND in test/editor shortcuts to make it Mac Keyboard compatible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
86688384ce
commit
e3fde20cf8
@ -742,27 +742,27 @@ void view_cb(Fl_Widget*, void*) {
|
|||||||
Fl_Menu_Item menuitems[] = {
|
Fl_Menu_Item menuitems[] = {
|
||||||
{ "&File", 0, 0, 0, FL_SUBMENU },
|
{ "&File", 0, 0, 0, FL_SUBMENU },
|
||||||
{ "&New File", 0, (Fl_Callback *)new_cb },
|
{ "&New File", 0, (Fl_Callback *)new_cb },
|
||||||
{ "&Open File...", FL_CTRL + 'o', (Fl_Callback *)open_cb },
|
{ "&Open File...", FL_COMMAND + 'o', (Fl_Callback *)open_cb },
|
||||||
{ "&Insert File...", FL_CTRL + 'i', (Fl_Callback *)insert_cb, 0, FL_MENU_DIVIDER },
|
{ "&Insert File...", FL_COMMAND + 'i', (Fl_Callback *)insert_cb, 0, FL_MENU_DIVIDER },
|
||||||
{ "&Save File", FL_CTRL + 's', (Fl_Callback *)save_cb },
|
{ "&Save File", FL_COMMAND + 's', (Fl_Callback *)save_cb },
|
||||||
{ "Save File &As...", FL_CTRL + FL_SHIFT + 's', (Fl_Callback *)saveas_cb, 0, FL_MENU_DIVIDER },
|
{ "Save File &As...", FL_COMMAND + FL_SHIFT + 's', (Fl_Callback *)saveas_cb, 0, FL_MENU_DIVIDER },
|
||||||
{ "New &View", FL_ALT + 'v', (Fl_Callback *)view_cb, 0 },
|
{ "New &View", FL_ALT + 'v', (Fl_Callback *)view_cb, 0 },
|
||||||
{ "&Close View", FL_CTRL + 'w', (Fl_Callback *)close_cb, 0, FL_MENU_DIVIDER },
|
{ "&Close View", FL_COMMAND + 'w', (Fl_Callback *)close_cb, 0, FL_MENU_DIVIDER },
|
||||||
{ "E&xit", FL_CTRL + 'q', (Fl_Callback *)quit_cb, 0 },
|
{ "E&xit", FL_COMMAND + 'q', (Fl_Callback *)quit_cb, 0 },
|
||||||
{ 0 },
|
{ 0 },
|
||||||
|
|
||||||
{ "&Edit", 0, 0, 0, FL_SUBMENU },
|
{ "&Edit", 0, 0, 0, FL_SUBMENU },
|
||||||
{ "Cu&t", FL_CTRL + 'x', (Fl_Callback *)cut_cb },
|
{ "Cu&t", FL_COMMAND + 'x', (Fl_Callback *)cut_cb },
|
||||||
{ "&Copy", FL_CTRL + 'c', (Fl_Callback *)copy_cb },
|
{ "&Copy", FL_COMMAND + 'c', (Fl_Callback *)copy_cb },
|
||||||
{ "&Paste", FL_CTRL + 'v', (Fl_Callback *)paste_cb },
|
{ "&Paste", FL_COMMAND + 'v', (Fl_Callback *)paste_cb },
|
||||||
{ "&Delete", 0, (Fl_Callback *)delete_cb },
|
{ "&Delete", 0, (Fl_Callback *)delete_cb },
|
||||||
{ 0 },
|
{ 0 },
|
||||||
|
|
||||||
{ "&Search", 0, 0, 0, FL_SUBMENU },
|
{ "&Search", 0, 0, 0, FL_SUBMENU },
|
||||||
{ "&Find...", FL_CTRL + 'f', (Fl_Callback *)find_cb },
|
{ "&Find...", FL_COMMAND + 'f', (Fl_Callback *)find_cb },
|
||||||
{ "F&ind Again", FL_CTRL + 'g', find2_cb },
|
{ "F&ind Again", FL_COMMAND + 'g', find2_cb },
|
||||||
{ "&Replace...", FL_CTRL + 'r', replace_cb },
|
{ "&Replace...", FL_COMMAND + 'r', replace_cb },
|
||||||
{ "Re&place Again", FL_CTRL + 't', replace2_cb },
|
{ "Re&place Again", FL_COMMAND + 't', replace2_cb },
|
||||||
{ 0 },
|
{ 0 },
|
||||||
|
|
||||||
{ 0 }
|
{ 0 }
|
||||||
|
Loading…
Reference in New Issue
Block a user