| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1818
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | FL_WHEN_ENTER_KEY: does not work for Fl_Browser |
Version: | 1.1.7 |
Created By: | xurux |
Assigned To: | mike |
Fix Version: | 1.1-current (SVN: v5992) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | xurux 13:44 Oct 27, 2007 |
| using this code:
{ Fl_Browser* o = browser = new Fl_Browser(..,..,..,..); o->type(3); // multibrowser (=select multiple lines) o->when(FL_WHEN_ENTER_KEY); o->callback((Fl_Callback*)action_cb); }
i would expect to get a callback (only) if i press Enter on an entry (but not for selection changes).
And it would also be good to get callbacks for double clicks on entries (this is similar to pressing Enter).
Attached is a patch which fixes both. What it does is disable the callbacks after changes (pressing space), and adding a callback for pressing enter and double click.
I tested for Fl_Browser with type(3) (=MultiBrowser) on Windows XP, where it is ok. | |
|
#2 | aivushkin 02:25 Oct 29, 2007 |
| This behaviour seems to be more useful than current one. I'll try patch for myself :-) | |
|
#3 | mike 08:20 Dec 15, 2007 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |