|Re: How to press shortcuts containing numpad keys? [message #1815708 is a reply to message #1815683]
||Tue, 08 October 2019 15:04
| Patrick Tasse
Registered: July 2009
What you're doing seems correct, also equivalent to:
tree.pressShortcut(Keystrokes.CTRL, KeyStroke.getInstance(0, SWT.KEYPAD_SUBTRACT));
However, it does not work because AWTKeyboardStrategy in SWTBot is missing the natural key mapping for this key. (I assume you are using AWT keyboard)
It could be added (and, at the same time, Keystrokes.KEYPAD_SUBTRACT so you can use it directly). We should add all the other keypad keystrokes too...
Can you submit a patch, or else write a bug report?
Powered by FUDForum
. Page generated in 0.02207 seconds