FLTK logo

Re: [fltk.general] Focus - Handling of ESC key in fltk-2 input widgets

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 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Focus - Handling of ESC key in fltk-2 input widgets "MacArthur, Ian \(SELEX\) \(UK\)" Mar 28, 2007  
 
> > deleted, and then
> > releases "backspace" key and presses "escape" key, then the 
> > first character of
> > previous (deleted) string will appear, and program wont quit 
> > on subsequent
> > "escape" key presses. Is this a bug in FLTK 2.x?
> 
> I don't know - I hadn't seen that before. Probably best if you file an
> STR on this just to make sure it is picked up. BTW, when I do 
> this, the
> first time I press ESC, the last deleted character re-appears, the
> second press of ESC closes the window normally, not quite the same
> effect. Very odd.

Well... It looks like this is caused by the fact that fltk2 input
widgets implement some sort of emacs-style editing commands - the ESC is
being caught and treated as an undo command.

I'm not sure I'm convinced this is a good idea...



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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'.