Skip to content
Permalink
Browse files

ui.backend.windows: GetKeyboardState returns 0 on error

  • Loading branch information...
erg committed May 2, 2019
1 parent 08aa27a commit c14e5714297d161e0215c9e374fc85f7ebba1ddc
Showing with 1 addition and 1 deletion.
  1. +1 −1 basis/ui/backend/windows/windows.factor
@@ -332,7 +332,7 @@ CONSTANT: exclude-keys-wm-char
256 <byte-array> :> keyboard-state
4 <byte-array> :> chars
lParam -16 shift 0xff bitand :> scan-code
keyboard-state GetKeyboardState win32-error<>0
keyboard-state GetKeyboardState win32-error=0/f
VK_CONTROL VK_CAPITAL [ 0 swap keyboard-state set-nth ] bi@
wParam scan-code keyboard-state chars 2 0 ToUnicode dup win32-error=0/f
1 <= [

0 comments on commit c14e571

Please sign in to comment.
You can’t perform that action at this time.