Life In 19x19 http://www.lifein19x19.com/ |
|
Eidogo's problem when keyboard support is enabled http://www.lifein19x19.com/viewtopic.php?f=18&t=7637 |
Page 1 of 1 |
Author: | macelee [ Sun Jan 13, 2013 7:49 am ] |
Post subject: | Eidogo's problem when keyboard support is enabled |
When turning on Eidogo's keyboard support, allowing web users to replay a game using keyboard (the arrow keys), there appears to be some bad side effect. I experienced this and had to disable keyboard support on go4go.net. For example, pressing '1' on keyboard actually plays the game forward (try this on any 19x19 posts containing a game records). This causes problem when the same web page contains a form (such as a comment box or a user login area) because one cannot input number '1' into these fields, at least on some variants of Linux systems I've tested. I wonder if anyone else experienced the same? Can anyone suggest a possible solution. I've done a little bit research on Google - this seems to have something to do with Javascript stealing focus in some situations. |
Author: | Dusk Eagle [ Sun Jan 13, 2013 9:01 pm ] |
Post subject: | Re: Eidogo's problem when keyboard support is enabled |
I'm on a 64-bit Debian box, and I haven't had this issue with either Firefox or Chrome. If I click on Eidogo, Eidogo will have focus and handles the input from my keyboard. If I click on a text field, the focus gets transferred to that. |
Author: | macelee [ Mon Jan 14, 2013 3:47 am ] |
Post subject: | Re: Eidogo's problem when keyboard support is enabled |
Dusk Eagle wrote: I'm on a 64-bit Debian box, and I haven't had this issue with either Firefox or Chrome. If I click on Eidogo, Eidogo will have focus and handles the input from my keyboard. If I click on a text field, the focus gets transferred to that. You are right this actually works correctly on 19x19. Not sure why, may have something to do with 19x19 displaying Eidogo player in an iframe. |
Author: | Dusk Eagle [ Mon Jan 14, 2013 8:44 am ] |
Post subject: | Re: Eidogo's problem when keyboard support is enabled |
It also seems to work correctly on GoGameGuru. Maybe you could look into the similarities of how these two sites do it? |
Author: | macelee [ Mon Jan 14, 2013 9:43 am ] |
Post subject: | Re: Eidogo's problem when keyboard support is enabled |
Dusk Eagle wrote: It also seems to work correctly on GoGameGuru. Maybe you could look into the similarities of how these two sites do it? A wonderful suggestion. These are about the two most popular Go sites. If they do not experience any problem, I should not either. In fact gogameguru also embeds Eidogo player in an iframe, as 19x19 does. Must be a good technical reason to do so. I will try the same idea. |
Author: | macelee [ Tue Jan 22, 2013 4:21 am ] |
Post subject: | Re: Eidogo's problem when keyboard support is enabled |
It turns out that putting Eidogo inside an iframe does fix the problem on go4go.net. When I examine things in detail, I found that the Eidogo player contains a number of example html files and one of which is called "example_iframe.html" containing a message in an textarea: Quote: You can type and use arrow keys in this box while still having keyboard shortcuts when the player above has focus. So I guess its author faced similar technical problems before. It is a pity these rather important details are not documented. Eidogo is no doubt a wonderful piece of technical work, but like many open-source projects it has little documentation. |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |