Re: [gtk-list] Re: New key-binding system




   There definitely has to be a "toggle_command_mode". 

   The text widget should have a new slot that holds a boolean value for
   whether it's in command mode or edit mode.  Commands are only executed
   of the widgets in command mode (but not vice versa).

Hmmmm, maybe it would be better to support an array of key bindings, and
have the new slot select one element from the array?  If a user was
using Emacs bindings, the array would only have one element, for vi it
would have two....  can't think of any applications anybody might want
at the moment that would actually use more than two sets of key
bindings, but I hate arbitrary limits (0- 1- infinity-rule).
-- 
Joseph J. Pfeiffer, Jr., Ph.D.       Phone -- (505) 646-1605
Department of Computer Science       FAX   -- (505) 646-1002
New Mexico State University          http://www.cs.nmsu.edu/~pfeiffer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]