Skip to content

Commit

Permalink
Create Windows events with VK when scan code is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
boppreh committed Mar 25, 2018
1 parent 6f9961f commit 2d1a833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard/_winkeyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def process_key(event_type, vk, scan_code, is_extended):
shift_is_pressed = False

is_keypad = (scan_code, vk, is_extended) in keypad_keys
return callback(KeyboardEvent(event_type=event_type, scan_code=scan_code, name=name, is_keypad=is_keypad))
return callback(KeyboardEvent(event_type=event_type, scan_code=scan_code or -vk, name=name, is_keypad=is_keypad))

def low_level_keyboard_handler(nCode, wParam, lParam):
try:
Expand Down

0 comments on commit 2d1a833

Please sign in to comment.