Giter Site home page Giter Site logo

Keyboard Updating Labels about zimjs HOT 3 CLOSED

danzen avatar danzen commented on May 29, 2024
Keyboard Updating Labels

from zimjs.

Comments (3)

danzen avatar danzen commented on May 29, 2024

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.

danzen avatar danzen commented on May 29, 2024

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.

adminy avatar adminy commented on May 29, 2024

@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)

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.