もずはっく日記(2015年1月) 2015年1月1日 KeyboardEvent.keyを利用する前に知っておくべき事 初回投稿日時: 2015年01月01日12時32分46秒 最終更新日時: 2015年01月01日12時33分46秒 カテゴリ: Events Javascript SNS: Tweet (list) Firefox (Gecko)では、昨年、D3Eで定義しているKeyboardEvent.keyの実装を大きく前進させました。ですが、この新しい、便利な属性を使う前に色々と知っておいた方が良いことがあります。 まず、KeyboardEvent.keyとはどのようなものなのか、おさらいしておきましょう。これは、過去との互換性から、KeyboardEvent.keyCodeの値を標準化したくてもできないために考案されたものです。KeyboardEvent.keyはKeyboa
最近キーボードショートカットの実装をしようと思ってキー入力によるイベント周りについて調べてみたのだけれど、日本語でまとまった情報が見つからなかったので、キーボードショートカットの実装に必要そうな内容を簡単にまとめておこうと思う。 キーボードショートカットに限らず、キー入力によるイベント周りの何かをする場合には参考になると思う。 本記事では、DOM 3 Events spec の 2012-09-06 の版を参照しており、将来の版では変更されている可能性がある。 最新の版は下記リンクから確認のこと。 Document Object Model (DOM) Level 3 Events Specification (DOM 3 Events spec の最新安定板) keydown イベント、keypress イベント、keyup イベントについて keydown イベント は、キーが押された
The venerable computer keyboard. You probably have one. In Javascript we can get keyboard events, but they are completely useless if you are differently-abled, if you try to make an accessible rich internet application or game or if you just have a different keyboard layout. The following blog post examines the technical barriers to make a web based game or web based rich client application access
iCab doesn't support the key events at all. Many thanks to Hallvord Steen for his summary of the key events in Windows browsers; his page saved me quite a bit of work. Detecting the user's keystrokes turns out to be a rather specialised branch of event handling. This page details some of the more obnoxious problems, and gives the inevitable compatibility table. The first problem is that there is n
Note: I have stopped updating this page. At this point nearly all popular browsers are have achieved a good level of compatibility on most of these features, and their behavior with respect to them just isn't changing much anymore. The only thing web designers really need to still watch out for is IE8, which is lingering due to the fact that it is the best version of IE that works on windows XP. (
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く