Ticket #31840

tabindexとkeydownハンドラ

Open Date: 2013-08-06 11:16 Last Update: 2013-08-06 18:13

Reporter:
Owner:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
7
Severity:
5 - Medium
Resolution:
None
File:
None

Details

どうもIE10で見ると、jgforceの環境ではうまくキーイベントがとれない。おそらくtabindexが必要ではないかと思われるので、要調査。

また、keydownとkeyupをdocumentに対するイベントとして受け取っているが、本来はGameRenderer.handlerに対してとるべきだと思われる。フォーカスを合わせる手間はあるが、1ページに複数ゲームを配置した場合などはdocumentのイベントでは駄目なので、バグという認識で即改修したい。

Ticket History (2/2 Histories)

2013-08-06 11:16 Updated by: tsugehara
  • New Ticket "tabindexとkeydownハンドラ" created
2013-08-06 18:13 Updated by: tsugehara
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2013-08-06 18:13
Comment

tabindexとcssのoutlineを設定し、GameRendererでhandlerを生成した直後にfocusを当てることで、ほぼイメージ通りの動きになった。マウスクリックでのフォーカス取得もやりやすく、これの方がいいだろう。

r144 にて対応。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login