Giter VIP home page Giter VIP logo

Comments (8)

jarek-foksa avatar jarek-foksa commented on June 27, 2024 2

I have changed the API to <x-shortcut value="Control+Shift+A"> syntax in Xel version 0.0.44.

from xel.

jarek-foksa avatar jarek-foksa commented on June 27, 2024 1

@rockiger This should be now fixed in version 0.0.48.

from xel.

rockiger avatar rockiger commented on June 27, 2024 1

Works like a charm now!

Thanks a lot!

from xel.

jarek-foksa avatar jarek-foksa commented on June 27, 2024

The current declarative API feels a bit awkward, I think I should change it to something like this:

<x-shortcut value="Control+Shift+A"></x-shortcut>

where the value can consist from any key names defined in https://www.w3.org/TR/uievents-key/, separated by "+" sign. I will fix it later this week as I have quite a lot of code relying on the current API.

BTW, is there a list of other attributes that have special meaning in React?

from xel.

rockiger avatar rockiger commented on June 27, 2024

Cool, thanks.

BTW, is there a list of other attributes that have special meaning in React?

Not that I am aware of. Some work differently, but this shouldn't be a problem: https://facebook.github.io/react/docs/dom-elements.html.

With the key attribute the problem is, that react omits it

from xel.

rockiger avatar rockiger commented on June 27, 2024

Something doesn't seem to work on non apple machines: the modifiers are not shown. The first image is from Linux (same thing for Windows 10) and the second is from a Mac.
spectacle f20770
spectacle t20770

from xel.

a-y-u-s-h avatar a-y-u-s-h commented on June 27, 2024

How do you use it in React? What do I need to import from xel to make it work?

from xel.

jarek-foksa avatar jarek-foksa commented on June 27, 2024

@a-y-u-s-h Please check the instructions on https://xel-toolkit.org/setup

from xel.

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.