14 lines
450 B
Go
14 lines
450 B
Go
//go:build linux && !android && (amd64 || arm64) && !mygo_noinspector && !android
|
|||
|
|
|
||
|
|
package automation
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/egoist/mygo"
|
||
|
|
"github.com/egoist/mygo/internal/linux"
|
||
|
|
)
|
||
|
|
|
||
|
|
// chooseMenuItem chooses an item of the window's menu bar, which shows
|
||
|
|
// the application menu, by the labels along its path. Main thread only.
|
||
|
|
func chooseMenuItem(w *mygo.Window, path []string) error {
|
||
|
|
return linux.TestActivateMenuItem(w.NativeHandle(), path...)
|
||
|
|
}
|