runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

[wip] make keyboard compatible with browser #40

Closed kesla closed 8 years ago

kesla commented 9 years ago
iefserge commented 9 years ago

Awesome, great to have a compatible api!

piranna commented 9 years ago

Awesome, great to have a compatible api!

:+1: Hope there's something similar in Node.js area :-)

kesla commented 9 years ago

@iefserge I started thinking about this a little more - perhaps we're doing it wrong here and a little bit more complicated than necessary - wouldn't emitting the char be enough? That's how node does it so could make is simple to create compatibility with process.stdin at some point :)

iefserge commented 9 years ago

stdin could be a layer on top of raw keyboard input events.

On May 31, 2015, at 12:37 AM, David Björklund notifications@github.com wrote:

@iefserge I started thinking about this a little more - perhaps we're doing it wrong here and a little bit more complicated than necessary - wouldn't emitting the char be enough? That's how node does it so could make is simple to create compatibility with process.stdin at some point :)

— Reply to this email directly or view it on GitHub.

piranna commented 9 years ago

stdin could be a layer on top of raw keyboard input events.

+1