StetHD / cakejs

Automatically exported from code.google.com/p/cakejs
0 stars 0 forks source link

Keyboard handling #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is currently no way to get key events with CAKE, nor is keyboard
focus handled.

There should be a system to manage which canvas node has keyboard focus,
and dispatching key events to it. The Canvas should also keep track of
which keys are currently depressed. 

Original issue reported on code.google.com by Ilmari.H...@gmail.com on 12 Mar 2008 at 5:25

GoogleCodeExporter commented 8 years ago

Original comment by Ilmari.H...@gmail.com on 18 Mar 2008 at 3:06

GoogleCodeExporter commented 8 years ago
Copy keyboard handling code from MegaPong?

Original comment by Ilmari.H...@gmail.com on 18 Mar 2008 at 5:21

GoogleCodeExporter commented 8 years ago
See http://glimr.rubyforge.org/cake/canvas.html#KeyboardTest
and cake.js Canvas event listener code (search for keyTarget)

Original comment by Ilmari.H...@gmail.com on 21 Mar 2008 at 3:33

GoogleCodeExporter commented 8 years ago
Sorry I have been long to get into it (my spare time is taken by another 
project we
are currently finalizing before release).

The keyboard demo does not work (on my linux x86 + firefox2 box at least). 
Maybe it
is expected? If not i'll try to investigate.

Regards, Jeko

Original comment by jcho...@gmail.com on 22 Mar 2008 at 10:47

GoogleCodeExporter commented 8 years ago
No problem, take your time.

Odd though, it works on my linux 64-bit + firefox2. When you click a shape, it 
should
light up to show that it's focused. It might also be numpad arrows vs. separate 
arrows :?

If it still persists, change status to Started and let's fix it.

Original comment by Ilmari.H...@gmail.com on 22 Mar 2008 at 4:23

GoogleCodeExporter commented 8 years ago
Tried on my linux64 + firefox2 and it works here. I don't understand why it 
behave
differently on those two platforms. I'm gonna check this.

Original comment by jcho...@gmail.com on 23 Mar 2008 at 7:32

GoogleCodeExporter commented 8 years ago

Original comment by Ilmari.H...@gmail.com on 2 Aug 2008 at 2:55