Mojox textview, selecting with shift behaviour

About Monkey 2 Forums Monkey 2 Development Mojox textview, selecting with shift behaviour

This topic contains 2 replies, has 2 voices, and was last updated by  cocon 2 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6935

    cocon
    Participant

    Holding Shift and clicking in order to select text, seems to work only the key repeat events.

    You can see the behaviour here:
    https://1drv.ms/v/s!AquVr9J7xRcsgXjK6aEadQLY1AHJ

    #6936

    nerobot
    Participant

    I think we get double click logic here.

    Try to click slower.

    #6942

    cocon
    Participant

    Yes, the reason is that the boolean condition that would allow the fix happen, is valid only for repeat events. Specifically is the way that modifier keys are processed.

    After examining these *.monkey2 files in order to understand the inner workings: view, window, app, textview. The best fix for this problem, is this one.

    Unfortunately I have to bypass the event mechanism and do a dirty hack (ignore the event checks) and rely on the Keyboard class. I am not proud of the solution, but it will work for now, until I find something else better better. 🙂

     

    P.S. Some notes on this subject _________________________________________________

    Regarding the proper “textview solution” would be fixed like this: app.monkey2 line 720

    Either by creating a new important event KeyPress (which captures both states of Down and Repeat) or the significance of Key.Repeat would be changed (changing it’s bitwise value) if it makes any sense to do so:

    I don’t know if these proposals are good or not but I though it a good opportunity to throw the ideas, and see what happens.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.