修飾キーバグ?
altKey_bug-app.xml
<?xml version="1.0" encoding="utf-8"?> <application xmlns="http://ns.adobe.com/air/application/1.5"> <id>examples.html.Hoge</id> <filename>Hoge</filename> <initialWindow> <content>altKey_bug.html</content> <visible>true</visible> </initialWindow> </application>
altKey_bug.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <title>altKey bug</title> <style type="text/css"> em.accesskey { font-style: normal; margin: 0 .25em; } kbd { text-decoration: underline; text-transform: capitalize; } </style> <label for="hoge" accesskey="h">hoge</label><em class="accesskey">(<kbd>h</kbd>)</em> <input id="hoge" value="hoge"> <script type="text/javascript" charset="utf-8" src="AIRAliases.js"></script> <script type="text/javascript">// <![CDATA[ function $(id) { return document.getElementById(id); } window.addEventListener('keydown', function(event) { if (event.altKey) switch (event.keyCode) { case air.Keyboard.H: $('hoge').select(); return; } }, false); // ]]></script>
after
Alt+H押下
どういうことなの…… ほかにもAlt押しながらだと、いろいろvalueに入る……