Skip to content

keydown doesn't work with spanish "ñ". Possible solution in Win10 #100

Description

@leomm20

Checklist

  • I use the latest release of atbswp
  • The issue is not existing yet

Verbose log

PASTE VERBOSE LOG HERE

Miscellaneous information

Operating System

Windows 10

Desktop Environment/Window Manager

Write here

Python version

3.11

Description

KeyDown doesn't work with spanish "ñ" (it doesn't break, but doesn't print anything).
Possible solution in Windows 10 at least:

In HEADER, add:
f"# -- coding: ISO-8859-1 --\n"
f"import pyperclip\n"

in on_press add:

if key.char == 'ñ':
                self._capture.append("pyperclip.copy('ñ')")
                self._capture.append("pyautogui.hotkey('ctrl', 'v')")
elif key.char == 'Ñ':
                self._capture.append("pyperclip.copy('Ñ')")
                self._capture.append("pyautogui.hotkey('ctrl', 'v')") 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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