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 - 21:48:42 CEST

On 8/30/07, J.M. Maurer <uwog@uwog.net> wrote:

(...)

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

Sorry, the previous snipped didn't even follow my initial suggestions.
It's probably better to not put any grammar (such as "shift+control"
into an attribute, since it requires extra parsing).

<editbindings>
    <mousecontext context="EV_EMC_VISUALTEXTDRAG" button0="true" control="true">
        <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" shift="true" control="true"
handler="delLeft"/>
    <keystroke key="EV_NVK_BACKSPACE" control="true" handler="delBOW"/>
    <keystroke key="0x41" control="true" handler="selectAll"/>
</editbindings>

Doesn't look quite as nice, but probably more workable.

- Rob
Received on Thu Aug 30 21:49:04 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 30 2007 - 21:49:04 CEST