Code Monkey home page Code Monkey logo

Comments (2)

mcdurdin avatar mcdurdin commented on August 25, 2024

Thanks for using KeymanWeb :)

I think this change would need to be added to the KeymanWeb code, but I am
going to be stuck for time in the next couple of months to investigate. It
is possible to synthesize OnChange events, e.g. see
http://stackoverflow.com/questions/2490825/how-to-trigger-event-in-javascript
(that result is a little dated; you don't need to worry about the
IE-specific solution any more). I would be willing to review a pull request
that makes this change to the on screen keyboard if you are up for that.

On 5 May 2016 at 10:37, dy2288 [email protected] wrote:

Hi,

Thanks for the great library!

We're using Version 1.0 and are considering moving to version 2.0 (which
I'm currently testing), however we're facing an issue with using the
keyboard in an application that relies on onChange events firing (for
example - in a 3rd party library like this
https://github.com/gcanti/tcomb-form).

As you probably know, onChange events only fire when an input is
manipulated via a user action, however we need these to fire when someone
clicks one of the keys in the virtual keyboard.

While I can track typed-values using code like this:

{code}
myInput.addEventListener(
'keyup',
function() { console.log('test') },
false);
{code}

I can't seem to figure out how to listen to the event that corresponds to
someone clicking a key via the moust (or for the matter, can't find a way
to manually trigger an onChange event via KeyManWeb). Tried adding event
listeners via kmw.addEventListener and kmw.osk.addEventListener, and had a
through read of the documentation.

Any help would be appreciated.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#42

from keyman.

dy2288 avatar dy2288 commented on August 25, 2024

Thanks for the reply. We're looking at a few workarounds, but I'd love to make a pull request once things settle here. Time is of course a factor as well.

from keyman.

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.