| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #228
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 4 - High, e.g. key functionality not working |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Problem with Ctrl+{N,P,F,B} shortcuts |
Version: | 1.1-current |
Created By: | geuzaine.acm.caltech |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
|
#1 | geuzaine.acm.caltech 10:57 Dec 03, 2003 |
| test.cxx 1k | |
Trouble Report Comments:
|
#1 | geuzaine.acm.caltech 10:57 Dec 03, 2003 |
| Hi guys - I ran into a small problem last night as I was trying to add a "File->New" menu item in my FLTK code, with a global "Ctrl+N" shortcut.
I defined the menu the usual way (Fl_Menu_Bar *m = new Fl_Menu_Bar(...)) and made the shortcuts global (m->global()), but the "Ctrl+N" event seemed to be captured only if the menu bar had the focus (which kinda defeated the purpose of a global shortcut ;-)...
After poking around in the sources (version 1.1.4), I found that, indeed, Ctrl+N, Ctrl+P, Ctrl+F and Ctrl+B are used for widget navigation in Fl_Group.cxx (in addition to the usual keyboard arrows) and that the Fl_Group will just consume the shortcuts and not pass them to the global handler.
Is there a way around this? (Or am I doing something wrong? Have a look at the test.cxx attached to this STR.)
Being able to use "Ctrl+N" and "Ctrl+P" globally would be nice, as they are the classic shortcuts for "New File" and "Print File".
Thanks,
Christophe | |
|
#2 | mike 17:56 Feb 25, 2004 |
| Thanks, I've dropped the CTRL-NPFB mapping from Fl_Group entirely. | |
[ Return to Bugs & Features ]
|
| |