Coder Social home page Coder Social logo

Keyboard shortcuts about qawl HOT 3 CLOSED

mr-islam avatar mr-islam commented on June 2, 2024
Keyboard shortcuts

from qawl.

Comments (3)

mr-islam avatar mr-islam commented on June 2, 2024

I'm wondering about the architecture of this, in terms of the function calls for each event and where to define the shortcuts:

  1. Where to define: I think it's best to keep shortcuts for each action along with the component that currently provides this functionality. Keeping similar concerns in one place would be better than having one giant global file for shortcuts
  2. Function calls: should the store provide a method for those actions, which components and hotkeys can both call? Or the hotkeys can call the same function the component is defined with?

It really helps to write this kind of concern out, and this is something (software architecture, I guess) I really want to learn the best practices of

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Oh as for function calls: I'm doing click calls on the visual elements 😅… part of me thinks this is bad practice, but another part thinks this will make it really easy to show those click and focus states on all the components when the relevant method is called (just like on old Qawl!)

from qawl.

mr-islam avatar mr-islam commented on June 2, 2024

Closed by #46 :)

from qawl.

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.