Giter VIP home page Giter VIP logo

Comments (3)

nicksergeant avatar nicksergeant commented on August 16, 2024 1

@johnlindquist huh, that is strange! I am able to get that KeyboardEvent to log with cmd-space:

image

Maybe some other keyboard shortcut/mapping interfering with things on your machine?

That being said, thanks for the workaround! Will use that for now :)

from kit.

johnlindquist avatar johnlindquist commented on August 16, 2024

Interesting...

Workaround

There's a file at:

/Users/user/.kit/db/shortcuts.json

Change the contents to:

{
  "shortcuts": {
    "/Users/johnlindquist/.kit/main/index.js": "cmd space"
  }
}

This will work fine. It's only the input that can't detect the cmd+space

Why Doesn't It Work?

I honestly don't know. Seems like cmd+. and cmd+` don't work either. I tried testing it in Chrome and those keys just don't trigger a keydown when "command" is held down. 🤷‍♂️

https://codesandbox.io/s/old-night-4yr6o?file=/src/index.js

I can't find anything anywhere on Google, so I'll keep an eye out, but I'm at a loss.

from kit.

johnlindquist avatar johnlindquist commented on August 16, 2024

Hmm, thanks for the info. I'll have to try on my other laptop now 🤔

from kit.

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.