Giter Site home page Giter Site logo

Add keyboard shortcuts about vue-play HOT 10 CLOSED

vue-play avatar vue-play commented on June 2, 2024
Add keyboard shortcuts

from vue-play.

Comments (10)

egoist avatar egoist commented on June 2, 2024
shortcuts description
cmd shift k toggle full window mode (toggle all panels)
cmd shift l toggle left panel
cmd shift d toggle down panel
shift ← previous playspot
shift → next playspot

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

I'm going to try to tackle this one.

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

For the full window mode, what do you want the default to be? So, if one panel is open and one is closed what do you do? Close the open one? Open the closed one?

from vue-play.

egoist avatar egoist commented on June 2, 2024

Close the open one? Open the closed one?

👍🏻 Exactly. But not open all the closed ones, just open the previously closed ones by entering full window mode 😅

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

... I think I get it... It's pretty easy to change regardless.

This PR turned out to be a LOT more work than I thought it would be...

from vue-play.

egoist avatar egoist commented on June 2, 2024

lol, do you use any 3rd-party lib? like mousetrap

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

For this PR? I haven't added any dependencies for this.

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

OKAY! I have working keybindings! It's not completely done yet (have to hook up changing the playspot), but overall it's working. I did lots of things. Please take a look.

Also, is there someway we can talk more directly? Would be easier to get feedback.

from vue-play.

egoist avatar egoist commented on June 2, 2024
  • feature
  • doc

from vue-play.

zephraph avatar zephraph commented on June 2, 2024

I think we should add a pop up similar to what react-storybook has. I tinkered with it a little, but I didn't really get anything I liked. Maybe you'll have better luck.

from vue-play.

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.