← Back to team overview

sikuli-driver team mailing list archive

[Question #285144]: Selecting text with the keyboard (Shift+Right)

 

New question #285144 on Sikuli:
https://answers.launchpad.net/sikuli/+question/285144

I've tried so many combinations of 

keyUp(SHIFT), type(Key.RIGHT, Key.SHIFT), type(Key.RIGHT, KeyModifier.SHIFT) 

and so on, but absolutely nothing will work. Other arrow keys and END also don't work in combination with SHIFT, they behave as if SHIFT isn't held.

A simple example:

App.focus("Word")
type(Key.RIGHT, KeyModifier.CTRL)

Works perfectly fine.

App.focus("Word")
type(Key.RIGHT, KeyModifier.SHIFT)

Does not work as it should. 
Expected behaviour: Cursor moves to the right, letter is selected
What happens: Cursor moves to the right as if shift is not pressed. Letter is not selected.

Same thing with END.

App.focus("Word")
type(Key.END, KeyModifier.SHIFT)
Expected behaviour: Cursor moves to the end of the sentence, sentence is selected
What happens: Cursor moves to the end of the sentence as if shift is not pressed. Sentence is not selected.

Any way to get around this?


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.