Git Product home page Git Product logo

Comments (7)

ndabAP avatar ndabAP commented on May 10, 2024

Hi,

First of all thanks for the project, it saves me a lot of time.

Thanks a lot :) Curious how you use the library.

Here you add listeners for the up and down keys and prevent the default behavior. Because of this, the nano editor cannot use the up and down keys

Very good point. Basically most of arrow key inputs are not available and that's not correct!

Im thinking of removing the prevent modifiers and add event.preventDefault() in the increaseHistory and decreaseHistory methods. So that you can disable the history when the nano editor is started. What do you think?

Yeah, that's the way to go. Maybe like this:

increaseHistory (event) {
  if (this.disableHistory || this.isInProgress) {
    return
  }

  event.preventDefault()
}

isInProgress is true when a command executing, which would be the case if the Nano editor has been started.

from vue-command.

WitteStier avatar WitteStier commented on May 10, 2024

Thanks a lot :) Curious how you use the library.

For my personal website.

Very good point. Basically most of arrow key inputs are not available and that's not correct!

What do you mean?

from vue-command.

WitteStier avatar WitteStier commented on May 10, 2024

It seems that this issue will be fixed by #146.

from vue-command.

ndabAP avatar ndabAP commented on May 10, 2024

For my personal website.

I like it! Feels super native in full screen 💪

What do you mean?

I just meant that every application that uses my library cannot assign the arrow keys because it's overwritten by the library. Just wanted to underline it's definitely a bug!

It seems that this issue will be fixed by #146.

Ah no, I close it right away. I tried around but wasn't happy with the final API design. Your PR is welcome :)

from vue-command.

ndabAP avatar ndabAP commented on May 10, 2024

@WitteStier does the problem still persist? If yes, I'll reopen the issue.

from vue-command.

WitteStier avatar WitteStier commented on May 10, 2024

Hi,

Yes the problem is still there. I also found another related bug, if you open the nano editor and press Ctrl + r, the search command will be opened and closes the nano editor. So i created a PR to prevent the default events when the last command is still in progress.

from vue-command.

ndabAP avatar ndabAP commented on May 10, 2024

🎉 This issue has been resolved in version 21.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from vue-command.

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.