changeset 363:700c47d18fec

- workaround for FLTK2 bug with menu shortcuts.
author jcid
date Mon, 29 Sep 2008 15:49:38 +0200
parents d2a6d664dea0
children 87a4bce3e024
files src/ui.cc
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Mon Sep 29 14:10:59 2008 +0200
+++ b/src/ui.cc	Mon Sep 29 15:49:38 2008 +0200
@@ -495,14 +495,16 @@
    mb->begin();
     ItemGroup *g = new ItemGroup( "&File" );
     g->begin();
-     new Item("&New Window", COMMAND + 'n', menubar_cb, (void *)"nb");
-     new Item("New &Tab", COMMAND + 't', menubar_cb, (void *)"nt");
+     /* FLTK2 BUG: The space prefix avoids FLTK2 taking the
+      *            first letter as a SHORTCUT */
+     new Item(" &New Window", COMMAND + 'n', menubar_cb, (void *)"nb");
+     new Item(" New &Tab", COMMAND + 't', menubar_cb, (void *)"nt");
      new Divider();
-     new Item("&Open File...", COMMAND + 'o', menubar_cb, (void *)"of");
-     new Item("Open UR&L...", COMMAND + 'l', menubar_cb, (void *)"ou");
-     new Item("Close &Window", COMMAND + 'q', menubar_cb, (void *)"cw");
+     new Item(" &Open File...", COMMAND + 'o', menubar_cb, (void *)"of");
+     new Item(" Open UR&L...", COMMAND + 'l', menubar_cb, (void *)"ou");
+     new Item(" Close &Window", COMMAND + 'q', menubar_cb, (void *)"cw");
      new Divider();
-     new Item("E&xit Dillo", ACCELERATOR + 'q', menubar_cb, (void *)"ed");
+     new Item(" E&xit Dillo", ACCELERATOR + 'q', menubar_cb, (void *)"ed");
     g->end();
    mb->box(EMBOSSED_BOX);
    mb->end();