Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added support for the numpad. I created a dict in
WordCatcher.__init__
method calledself._vk_map
to map the pynput Keyvk
value to specific characters. For example virtual key code 97 maps to numpad1
, and keycode 110 maps to numpad.
.Then in
WordCatcher._keycode_to_keydata
I added a mapping of the key code (self._key.vk
) to thatself._vk_map
dict.Fixes #
42 - Numerical text files not loading: #42
Type of change
How Has This Been Tested?
#test0123456789.txt
, and populate it with test text.!reload
if it is already running.#test
and then use the numpad to type0123456789
with the numpad.Test Configuration:
Checklist: