Skip to content

Commit

Permalink
fix(input): use golang.org/x/sys/windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 19, 2024
1 parent 245c578 commit 83b1d9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions input/driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"unicode/utf16"

"github.com/charmbracelet/x/ansi"
termwindows "github.com/charmbracelet/x/windows"
"github.com/erikgeiser/coninput"
"golang.org/x/sys/windows"
)
Expand Down Expand Up @@ -141,7 +140,7 @@ func parseConInputEvent(event coninput.InputRecord, ps *coninput.ButtonState, ws
var keyState [256]byte
var utf16Buf [16]uint16
const dontChangeKernelKeyboardLayout = 0x4
ret := termwindows.ToUnicodeEx(
ret := windows.ToUnicodeEx(
uint32(e.VirtualKeyCode),
uint32(e.VirtualScanCode),
&keyState[0],
Expand Down

0 comments on commit 83b1d9d

Please sign in to comment.