Coder Social home page Coder Social logo

Key repeat not working on MacOS about uivonim HOT 6 OPEN

smolck avatar smolck commented on May 22, 2024
Key repeat not working on MacOS

from uivonim.

Comments (6)

smolck avatar smolck commented on May 22, 2024 2

So, based on that PR (which I had not seen, so thank you for mentioning it) and if I understand correctly, I'd need to use different events (or change up some logic) to get keypresses in normal mode so holding a key down repeats as expected, but when in insert mode the hold dialog appears as intended. This may or may not work/be feasible though, so I'll have to try it out and go from there.

For the time being though, you can run this command as a workaround:
$ defaults write -g ApplePressAndHoldEnabled -bool false

Of course, having to do that for a single application to work as desired is not ideal, so hopefully there's a straightforward solution (likely based on the one in that PR).

from uivonim.

smolck avatar smolck commented on May 22, 2024 1

@metalelf0 Hello, thanks for the issue! This is something I have actually noticed myself, but I haven't taken the time to look into it yet. Hopefully I'll be able to do so soon!

from uivonim.

metalelf0 avatar metalelf0 commented on May 22, 2024 1

Hmm, my system settings are already on very fast keyboard repeat, so it shouldn't be related. I'll try to look into this as well and I'll let you know if I find anything relevant.

from uivonim.

smolck avatar smolck commented on May 22, 2024

Hmm, so after some further looking into it, I think this is actually a macOS preferences thing. If you go into System Preferences > Keyboard, you can change the values for Key Repeat and Delay Until Repeat to what you want.

That is system-wide though. There might be a way to do it on an application-specific basis, but I'm new to macOS and so wouldn't know; regardless, I think this can be closed, since this isn't an uivonim issue? Unless I'm mistaken?

from uivonim.

metalelf0 avatar metalelf0 commented on May 22, 2024

Have you already seen https://github.com/xtermjs/xterm.js/pull/1849/files ? I'm no js/electron dev, but this seems related.

from uivonim.

xukai92 avatar xukai92 commented on May 22, 2024

defaults write com.uivonim.uivonim ApplePressAndHoldEnabled -bool false should do it for a single app

from uivonim.

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.