2026-10-14 17:24:59 +08:00
|
|
|
//go:build !windows
|
|
|
|
|
|
|
|
|
|
package scanbridge
|
|
|
|
|
|
|
|
|
|
import "log"
|
|
|
|
|
|
|
|
|
|
// 非 Windows 平台的占位实现:仅记录,不注入键盘。
|
|
|
|
|
// 编译期即确定(build tag),生产环境(Windows 工位终端 / WMS / MES 服务器)走 keyboard_windows.go。
|
|
|
|
|
func sendStringAsKeyboard(s string) error {
|
|
|
|
|
log.Printf("⌨️ [非Windows] 跳过键盘注入: %s", s)
|
|
|
|
|
return nil
|
|
|
|
|
}
|