Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- keyboard/__init__.py
- keyboard/_mouse_tests.py
- keyboard/mouse.py

Fixes:
- Should read `required` rather than `requried`.
- Should read `modifier` rather than `modiier`.
- Should read `millimeters` rather than `millimiters`.
- Should read `included` rather than `inluded`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
  • Loading branch information
timgates42 authored and boppreh committed Jul 20, 2022
1 parent 8e9fc77 commit 8ea01e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keyboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class _KeyboardListener(_GenericListener):
#|
#| Type of event that triggered this modifier update.
#| |
#| | Type of key that triggered this modiier update.
#| | Type of key that triggered this modifier update.
#| | |
#| | | Should we send a fake key press?
#| | | |
Expand Down
2 changes: 1 addition & 1 deletion keyboard/_mouse_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def wait_for_events_queue(self):
def flush_events(self):
self.wait_for_events_queue()
events = list(self.events)
# Ugly, but requried to work in Python2. Python3 has list.clear
# Ugly, but required to work in Python2. Python3 has list.clear
del self.events[:]
return events

Expand Down
4 changes: 2 additions & 2 deletions keyboard/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def move(x, y, absolute=True, duration=0):
y = int(y)

# Requires an extra system call on Linux, but `move_relative` is measured
# in millimiters so we would lose precision.
# in millimeters so we would lose precision.
position_x, position_y = get_position()

if not absolute:
Expand Down Expand Up @@ -205,7 +205,7 @@ def play(events, speed_factor=1.0, include_clicks=True, include_moves=True, incl
intervals. If speed_factor is <= 0 then the actions are replayed as fast
as the OS allows. Pairs well with `record()`.
The parameters `include_*` define if events of that type should be inluded
The parameters `include_*` define if events of that type should be included
in the replay or ignored.
"""
last_time = None
Expand Down

0 comments on commit 8ea01e1

Please sign in to comment.