GithubHelp home page GithubHelp logo

Comments (5)

rawpixel-vincent avatar rawpixel-vincent commented on June 19, 2024

same here, commenting out that line:

 // if (!(keys != null && keys.includes(keyCode)) && !['ctrl', 'control', 'unknown', 'meta', 'alt', 'shift', 'os'].includes(keyCode)) {
  //   console.log("elmoo");
  //   return false;
  // }

in isHotkeyMatchingKeyboardEvent()
fix the issue, if that helps

happens is firefox / chrome - linux and macos

I've managed to log that before this condition execute, and I'm not sure why "right" is in keys, maybe some memoization issue 🤷🏻
{"pressedKey":"delete","keyCode":"","keys":["right"]}

downgrading to 4.4.1 fixed the issue, all good 👍🏻

from react-hotkeys-hook.

JohannesKlauss avatar JohannesKlauss commented on June 19, 2024

Hmh, weird. I'll have a look into it.

from react-hotkeys-hook.

JohannesKlauss avatar JohannesKlauss commented on June 19, 2024

Weirdly enough only Shift+? works for me, the other two don't register.

from react-hotkeys-hook.

JohannesKlauss avatar JohannesKlauss commented on June 19, 2024

Fixed in 4.4.4

from react-hotkeys-hook.

damusnet avatar damusnet commented on June 19, 2024

Thank you for looking into this.

After updating the CodeSandbox to 4.4.4: shift+? and shift+minus now both work, but shift+plus still doesn't.

Note also that on a extended keyboard with separate numpad, neither shift+plus nor shift+minus work.

from react-hotkeys-hook.

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.