Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-15 Thread Dominic Mazzoni
The problem I have with using only explicitly defined action functions is that the whole point of simulating keyboard events is to test whether or not the user interface is accessible using the keyboard! (This is not just an issue for people using assistive technology like a screen reader: there

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-15 Thread James Su
What's the motivation of implementing such tests as extensions? The automation framework already supports simulating keyboard events, can we just use it for such kind of tests? Regards James Su 2010/1/16 Dominic Mazzoni dmazz...@google.com The problem I have with using only explicitly defined

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Simon Stewart
The easiest thing for someone who's attempting to use the accessibility API may be to avoid using keycodes, and instead allow the input of the desired displayed value. The advantage of this would be to allow the input of internationalized characters that would otherwise need IME to be input.

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Dominic Mazzoni
On Thu, Jan 14, 2010 at 8:01 AM, Simon Stewart simon.m.stew...@gmail.com wrote: The easiest thing for someone who's attempting to use the accessibility API may be to avoid using keycodes, and instead allow the input of the desired displayed value. The advantage of this would be to allow the

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Nico Weber
It probably depends if you want to use this for text input or action inputs. A text-to-speech extension would probably want to set unicode characters, while something that (say) hits cmd-f to open the find bar probably wants to use keycodes. For example, on OS X hitting cmd-f with a hiragana

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Dominic Mazzoni
On Thu, Jan 14, 2010 at 8:19 AM, Nico Weber tha...@google.com wrote: It probably depends if you want to use this for text input or action inputs. A text-to-speech extension would probably want to set unicode characters, while something that (say) hits cmd-f to open the find bar probably wants

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Nico Weber
On Thu, Jan 14, 2010 at 8:37 AM, Dominic Mazzoni dmazz...@google.com wrote: On Thu, Jan 14, 2010 at 8:19 AM, Nico Weber tha...@google.com wrote: It probably depends if you want to use this for text input or action inputs. A text-to-speech extension would probably want to set unicode

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Dominic Mazzoni
On Thu, Jan 14, 2010 at 9:54 AM, Erik Arvidsson a...@google.com wrote: Keyboard events in browsers has and is a compatibility nightmare. I feel like the current working draft for DOM level 3 Events is making good progress in cleaning this up and it is worth a read if you are planning to do

Re: [chromium-dev] Keyboard codes to use for a chrome extension api that enables automation?

2010-01-14 Thread Simon Stewart
On Thu, Jan 14, 2010 at 4:15 PM, Dominic Mazzoni dmazz...@google.com wrote: On Thu, Jan 14, 2010 at 8:01 AM, Simon Stewart simon.m.stew...@gmail.com wrote: The easiest thing for someone who's attempting to use the accessibility API may be to avoid using keycodes, and instead allow the input