It is currently Fri May 02, 2025 2:06 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
Offline
 Post subject: Eidogo's problem when keyboard support is enabled
Post #1 Posted: Sun Jan 13, 2013 7:49 am 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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.

Top
 Profile  
 
Offline
 Post subject: Re: Eidogo's problem when keyboard support is enabled
Post #2 Posted: Sun Jan 13, 2013 9:01 pm 
Gosei
User avatar

Posts: 1758
Liked others: 378
Was liked: 375
Rank: 4d
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.

_________________
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.

Top
 Profile  
 
Offline
 Post subject: Re: Eidogo's problem when keyboard support is enabled
Post #3 Posted: Mon Jan 14, 2013 3:47 am 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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.

Top
 Profile  
 
Offline
 Post subject: Re: Eidogo's problem when keyboard support is enabled
Post #4 Posted: Mon Jan 14, 2013 8:44 am 
Gosei
User avatar

Posts: 1758
Liked others: 378
Was liked: 375
Rank: 4d
It also seems to work correctly on GoGameGuru. Maybe you could look into the similarities of how these two sites do it?

_________________
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.

Top
 Profile  
 
Offline
 Post subject: Re: Eidogo's problem when keyboard support is enabled
Post #5 Posted: Mon Jan 14, 2013 9:43 am 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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.

Top
 Profile  
 
Offline
 Post subject: Re: Eidogo's problem when keyboard support is enabled
Post #6 Posted: Tue Jan 22, 2013 4:21 am 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group