Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/selenium_driverless/types/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ async def send_keys(self, text: str, allow_not_on_mapping: bool = True):
"""
async with self._send_key_lock:
for letter in text:
if letter == "\n":
letter = "\r"
if letter in KEY_MAPPING:
if letter == "\n":
letter = "\r"
key_code, virtual_key_code = KEY_MAPPING[letter]
elif allow_not_on_mapping:
key_code, virtual_key_code = 0, 0
Expand Down