Re: CVS: commit msevior abi/src/af/ev/xp ev_EditBinding.cpp

From: J.M. Maurer <uwog_at_uwog.net>
Date: Thu Aug 30 2007 - 12:10:12 CEST

On Thu, 2007-08-30 at 12:03 +0200, Robert Staudinger wrote:
> On 8/30/07, J.M. Maurer <uwog@uwog.net> wrote:
>
> [...]
>
> > Thanks for the feedback. More improvements are very welcome. When I
> > implement this, I'd like to have it as good as possible from the start.
>
> Ok, you asked for it. Here is how i'd put that, admittedly without
> knowing much about the details.
>
> <editbindings>
> <mousecontext context="EV_EMC_VISUALTEXTDRAG" button="button0"
> modifiers="ctrl">
> <handler type="click">cutVisualText</handler>
> <handler type="doubleclick">copyVisualText</handler>
> <handler type="drag">dragVisualText</handler>
> <handler type="doubledrag">dragVisualText</handler>
> <handler type="release">dragVisualText</handler>
> <handler type="doublerelease">pasteVisualText</handler>
> </mousecontext>
> <keystroke key="EV_NVK_BACKSPACE" modifiers="shift+control"
> handler="delLeft"/>
> <keystroke key="EV_NVK_BACKSPACE" modifiers="control" handler="delBOW"/>
> <keystroke key="0x41" modifiers="control" handler="selectAll"/>
> </editbindings>
>
> Admittedly using attributes is a matter of taste. However, nesting can
> cause headache too, in particular it complicates SAX parsing.

I like this one, and I'll adopt it.

Marc
Received on Thu Aug 30 12:10:49 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 30 2007 - 12:10:49 CEST