Giter VIP home page Giter VIP logo

Comments (5)

SpecialCharacter avatar SpecialCharacter commented on June 22, 2024

I have the same issue.
(See also: https://stackoverflow.com/questions/45250525/programmed-a-keylistener-but-it-executes-everything-twice?noredirect=1#comment77950594_45250525)

Additionally, I think this behavior messes with the deadkeys.

from pynput.

moses-palmer avatar moses-palmer commented on June 22, 2024

@SpecialCharacter I have made a comment on StackOverflow, and also pushed a branch for testing here. If you find the time to test it, I would be grateful. The fix removed the additional event triggered by the controller, and the simple test case posted by you on StackOverflow appears to pass.

@Jzege Your issue is a bit more complicated. It appears that KBDLLHOOKSTRUCT::vkCode can be set to VK_PACKET. In this case, KBDLLHOOKSTRUCT::scanCode is set to the UTF-16 representation of the key.

The testing branch includes a fix for this as well; if KBDLLHOOKSTRUCT::vkCode is VK_PACKET, it will use KBDLLHOOKSTRUCT::scanCode as a raw unicode character. If you find any issues, please report them here.

from pynput.

Jzege avatar Jzege commented on June 22, 2024

Works great so far, thank you.

from pynput.

moses-palmer avatar moses-palmer commented on June 22, 2024

The fix has been merged in pynput 1.3.6.

from pynput.

SpecialCharacter avatar SpecialCharacter commented on June 22, 2024

from pynput.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.