Skip to content

Commit

Permalink
ui.backend.windows: GetKeyboardState returns 0 on error
Browse files Browse the repository at this point in the history
  • Loading branch information
erg committed May 2, 2019
1 parent 08aa27a commit c14e571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/ui/backend/windows/windows.factor
Original file line number Diff line number Diff line change
Expand Up @@ -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 <= [
Expand Down

0 comments on commit c14e571

Please sign in to comment.