Comments (3)
Great idea - we've been thinking that would be handy - I keep pressing keys when I see the keyboard and nothing happens... one of our users, Frank coded this initially - it was a big job (woot for Frank!) and is in part Dutch - hahaha - sigh. I guess the idea behind it is that it would be used when there is no keyboard - but in cases where there is both, you are right... it would be handy to sync them.
It looks like adding text manually like that to the label is messing it up. Will take a look at it now - might be able to patch 9.5.1 with an addChar(char, index, label) method where index defaults to the current index and label the current label - then the call from the key event will be easier. Perhaps in ZIM 10 coming out in a couple weeks we can integrate the key event to sync with a keyboard automatically. Thanks - please drop on by our Slack space at https://zimjs.com/slack where we have lots of discussion about this type of stuff!
from zimjs.
Hi @adminy - a patch to ZIM 9.5.1 has been made so addChar(char) and removeChar() have been added. Here is an example with most keyboard functionality. We will add this to ZIM 10 - but for now, you can use the code in the example if it is helpful https://zimjs.com/explore/keyboard.html. The docs have been updated at https://zimjs.com/docs.html?item=keyboard - all the best - keep in touch!
from zimjs.
@danzen Thank you very much. I had a modified local version of zim which fixed the issue. But that is great to hear that it has been fixed in the latest version. I should have joined the slack ages ago, ahahaha, now I will.
from zimjs.
Related Issues (20)
- Frame LoadAssets Problem HOT 2
- centerReg() does not working on ZimJS version 10 HOT 2
- Label.labelWidth change issue. HOT 1
- Zim.Frame("tagID") does not work well. HOT 3
- In IE11, the Frame can't load all images succeeded in the first time. HOT 4
- [Question] Can a movable element be present on more than 1 square? HOT 1
- Refactoring code HOT 4
- hi, is it possible run on an environment which has no dom bom environment HOT 25
- h and v scroll conflicts list & window. HOT 7
- 2 bugs found. HOT 2
- bug report: SVGContainer("xxx.svg") parse error, but bitmap ("xxx.svg") works. HOT 3
- using zimjs in angular project HOT 4
- Drag make animation weird in ZIMSHIM (adobe animate) HOT 2
- please update typing definition for typescript user HOT 1
- Where is library repository? HOT 1
- Render to Three JS Canvas Texture HOT 4
- Invalid redirect HOT 1
- access to plasma zapp not working HOT 1
- ZIM NPM, Vue, Svelte, React and Angular HOT 1
- ball movement with connected physics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zimjs.