[gui-test] add one shortcut method for multiple systems

This commit is contained in:
Sergey Karashevich
2018-02-19 17:47:46 +03:00
parent 1bcb3c2c60
commit 689b7fc0e6
@@ -631,6 +631,11 @@ open class GuiTestCase {
fun shortcut(shortcut: Shortcut) = shortcut(shortcut.getKeystroke())
fun shortcut(winShortcut: Shortcut, macShortcut: Shortcut) {
if (SystemInfo.isMac()) shortcut(macShortcut)
else shortcut(winShortcut)
}
fun shortcut(key: Key) = shortcut(key.name)
/**