Web Based User Agent - further

OK so firstly on input it seems to be possible to capture keystrokes  
and not pass them on (with an
event listener that calls event.preventDefault();) - this is in  
JavaScript.

Further, we've found that we cannot control how other scripts (part  
of the page) handle keystrokes.  For example, with auto-suggest  
lists, there is typically an event handler on the page that listens  
for the return key, and completes the box with the highlighted  
value.  We want the return key to enter the user's selection (which  
is not necessarily highlighted), but we can't make the return do what  
we want first time - the only way round it is for the user to hit  
return twice.

Now output, we've not tried making changes without triggering a  
DOMMutationEvent, but it sounds tricky.  The only way we can imagine  
is by removing all DOMMutation event listeners (if this is possible),  
making the change, then adding them again. However, if we are not  
changing the DOM but communicating via just the appearance (i.e.,  
something that could be achieved by changing the CSS only), then this  
could be possible, as could interfacing to drawing apps or pushing  
anything in the new html5 canvas.


Cheers
Si.

=======================

Simon Harper
University of Manchester (UK)

Human Centred Web Lab: http://hcw.cs.manchester.ac.uk

My Site: http://hcw.cs.manchester.ac.uk/people/harper/

My Diary (Web): http://hcw.cs.manchester.ac.uk/people/harper/ 
phpicalendar/week.php
My Diary (Subscribe): http://hcw.cs.manchester.ac.uk/diaries/harper/ 
SimonHarper.ics

Received on Friday, 28 August 2009 15:09:17 UTC