diff --git a/input_windows.go b/input_windows.go index 36e9516..541ad51 100644 --- a/input_windows.go +++ b/input_windows.go @@ -111,6 +111,7 @@ type key_event_record struct { // These names are from the Win32 api, so they use underscores (contrary to // what golint suggests) const ( + vk_back = 0x08 vk_tab = 0x09 vk_menu = 0x12 // ALT key vk_prior = 0x21 @@ -212,6 +213,9 @@ func (s *State) readNext() (interface{}, error) { if ke.VirtualKeyCode == vk_tab && ke.ControlKeyState&modKeys == shiftPressed { s.key = shiftTab + } else if ke.VirtualKeyCode == vk_back && (ke.ControlKeyState&modKeys == leftAltPressed || + ke.ControlKeyState&modKeys == rightAltPressed) { + s.key = altBs } else if ke.VirtualKeyCode == bKey && (ke.ControlKeyState&modKeys == leftAltPressed || ke.ControlKeyState&modKeys == rightAltPressed) { s.key = altB