mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] add one shortcut method for multiple systems
This commit is contained in:
@@ -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)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user