//go:build !darwin
|
|
package axinput
|
|
type unsupportedDriver struct{}
|
|
func newPlatformDriver() Driver {
|
return &unsupportedDriver{}
|
}
|
|
func (d *unsupportedDriver) AccessibilityTrusted(prompt bool) bool {
|
return false
|
}
|
|
func (d *unsupportedDriver) DirectInsert(text string) DirectInsertResult {
|
return DirectInsertResult{OK: false, Method: "unsupported", Message: "AX direct input is macOS-only"}
|
}
|
|
func (d *unsupportedDriver) CopyTextToClipboard(text string) ClipboardResult {
|
return ClipboardResult{OK: false, Message: "AX clipboard fallback is macOS-only"}
|
}
|
|
func (d *unsupportedDriver) FrontmostAppIdentity() FrontmostAppIdentity {
|
return FrontmostAppIdentity{OK: false, Message: "frontmost app identity is macOS-only"}
|
}
|
|
func (d *unsupportedDriver) AutoPasteClipboardIfFrontmostUnchanged(expectedIdentity string) AutoPasteResult {
|
return AutoPasteResult{OK: false, Message: "automatic paste experiment is macOS-only"}
|
}
|
|
func (d *unsupportedDriver) PrepareClipboardFallback(text string) ClipboardResult {
|
return ClipboardResult{OK: false, Message: "AX clipboard fallback is macOS-only"}
|
}
|
|
func (d *unsupportedDriver) RestoreClipboardFallback(token string) ClipboardResult {
|
return ClipboardResult{OK: false, Message: "AX clipboard fallback is macOS-only"}
|
}
|