Skip to content

keyboard.write being affected by the keyboard language #654

Open
@LeeFuuChang

Description

@LeeFuuChang

Issue

When I run the code below on different keyboard language (UK / US / TW / EN ...), the result differs.

import keyboard
import time

# wait 1 second so I can focus the text editor 
# making the 'keyboard.write' result type in editor
time.sleep(1)

keyboard.write("English 中文 한국어 Русский")

Demo

螢幕錄影 2024-08-13 晚上10 10 13

Expected behavior

It should always write English 中文 한국어 Русский regardless of the keyboard language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions