GithubHelp home page GithubHelp logo

Comments (8)

ekafyi avatar ekafyi commented on June 19, 2024

Did someone already fix it? Ctrl + Enter (and even Option + Enter) works on my machine (Mac OSX 10, tested on Chrome, Firefox, Safari).

from learn.

Bouncey avatar Bouncey commented on June 19, 2024

I think it is triggering the form submit when you are pressing Enter, the Ctrl modifier isn't doing anything.

There is no user integration at this very minute, so nothing we seem completed in the map

from learn.

joops75 avatar joops75 commented on June 19, 2024

I've fixed the issue of the Ctrl key having no effect when pressing enter on my machine (Windows 7 64-bit, Firefox Quantum 60.0.1 64-bit). It involves adding in 'onkeydown' and 'onkeyup' event listeners. Not sure if this approach is overkill. Should I submit a pull request? Alternatively, the button text could be simply changed from "I've completed this challenge (Ctrl + Enter)" to "I've completed this challenge (Enter)"

from learn.

tchaffee avatar tchaffee commented on June 19, 2024

@Bouncey @joops75 Any update on this?

from learn.

joops75 avatar joops75 commented on June 19, 2024

@tchaffee Nothing from my end, I'm still awaiting instruction on my previously mentioned solutions.
@Bouncey Sorry, I should have tagged you in my last message.

from learn.

Bouncey avatar Bouncey commented on June 19, 2024

I don't think changing the hot keys between challenges is a good idea in terms of UX.

As we are working with a form, we could add an onKeyDown prop to listen for Ctrl || Cmd + Enter which then calls this.handleSubmit ( this is from the top of my head, implementation would be different )

from learn.

joops75 avatar joops75 commented on June 19, 2024

@Bouncey I've submitted a PR for this.

from learn.

Bouncey avatar Bouncey commented on June 19, 2024

Closed via #181

from learn.

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.