FLTK logo

STR #228

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 geuzaine.acm.caltech
10:57 Dec 03, 2003
test.cxx
1k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.