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

From: Robert Staudinger <robert.staudinger_at_gmail.com>
Date: Thu Aug 30 2007 - 12:03:10 CEST

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.

- Rob
Received on Thu Aug 30 12:03:37 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 30 2007 - 12:03:37 CEST