Selecting text with the keyboard (Shift+Right)
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?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- masuo
- Solved:
- Last query:
- Last reply: