mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
windows: TestToUnicodeEx: always activate the layout
This commit is contained in:
@@ -1293,7 +1293,7 @@ func TestToUnicodeEx(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("UTF16PtrFromString failed: %v", err)
|
||||
}
|
||||
araLayout := windows.LoadKeyboardLayout(ara, 0)
|
||||
araLayout := windows.LoadKeyboardLayout(ara, windows.KLF_ACTIVATE)
|
||||
var keyState [256]byte
|
||||
ret := windows.ToUnicodeEx(
|
||||
0x41, // 'A' vkCode
|
||||
|
||||
Reference in New Issue
Block a user