gadfly361 / re-pressed Goto Github PK
View Code? Open in Web Editor NEWre-pressed is a clojurescript library that handles keyboard events for re-frame applications.
License: MIT License
re-pressed is a clojurescript library that handles keyboard events for re-frame applications.
License: MIT License
Currently, all keys are ignored if pressed inside of a select, input, or textarea. However, it would be useful to be able to record and dispatch off of certain keys (like enter, arrows, or tab, etc.).
I think the solution here is to either:
{:always-listen-keys [{:which 13}]
{:ignore-select? false}
, where it defaults to true.(reg-global-interceptor trim-v)
This won't let re-pressed work.
I am not sure if this is re-pressed concern but I believe there might be a way to make it compatible.
When using a key sequence to dispatch an event, the key sequence is incorrectly compared against the most recent keys in reverse order
For example, this
[
[ [:some-event-id]
[{:which 72} ;; h
{:which 87} ;; w
]
Would incorrectly dispatch [:some-event-id]
when w
then h
is pressed, and not when h
and then w
is pressed.
Hi, I am not sure if it is a bug. But whenever I press keys in an input
element, a warning re-frame: Subscribe was called outside of a reactive context
occurs.
To reproduce:
lein new re-frame <app-name> +re-pressed
main-panel
in views.cljs
to(defn main-panel [] [:input])
Thank you for this library but to include jquery to modern react app is not the best practice. This lib will be nicer for me when it doesn't not depend on jquery
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.