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

Then, when the text widget is put into emacs mode, the slot is turned on
because we want to edit and issue commands. The slot either can't or
shouldn't be turned off in emacs mode. When it's put into vi, i dunno,
you guys figure out which state the slot should be put in.

But maybe that "lazy edit" mode won't work... if i'm in command mode, i
don't think i want any keystrokes to edit anything, right? (i don't use
vi).  Maybe the slot needs to hold "command", "edit", or "emacs"
("both")??

But this emacs/vi thing should be global.  You shouldn't be able to have
one text box be in emacs mode, and one in vi mode.  And you should be
able to change the mode of all existing text boxes with one command (or
signal).  

Anyhow...

-- 
Patrick Rogan
-----------------------------------
Systems Engineer

Lycos, Inc.
1 Oxford Centre
301 Grant Street, Suite 525
Pittsburgh, PA   15219-1408



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