W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2014

Pointer Events types and keyboard/keyboard-like interfaces?

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Sat, 04 Jan 2014 22:07:11 +0000
Message-ID: <52C8860F.1090600@splintered.co.uk>
To: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
Although Pointer Events allow for much easier handling of 
pen/touch/mouse, one type of input that still requires completely 
separate event handling are keyboards (which fire keydown/keypress/keyup 
and the more abstracted focus/blur/click) and keyboard-like interfaces 
(for instance Talkback screenreader on Android, which seems to fire 
focus/blur when the focus rectangle is moved sequentially, plus an 
interesting blur > mousedown > mouseup > click > focus sequence when a 
control is activated on a page).

I don't think it'd matter too much to distinguish between sequential 
navigation (TAB/SHIFT+TAB style moving along the cycle of focusable 
elements) and spatial navigation (old Opera-style SHIFT+cursor keys to 
move between focusable elements as they appear in the visual layout), 
but in principle, would it make sense to include a new pointerType value 
of "keyboard" or similar?

On a more general note, is it out of scope for this spec to also suggest 
that browsers should then fire the relevant pointer events for 
keyboard/keyboard-like interfaces? I seem to remember that Sangwhan Moon 
mentioned to me that Opera were planning to do this for upcoming TV 
browser versions at some point...but basically, mapping the more 
abstracted events (not the key* ones) as follows:

focus - pointerenter > pointerover
click (when activated with kbd) - pointerdown > pointermove > pointerup 
(sort of like the equivalent of mouse compatibility events fired for 
touch events)
blur - pointerout > pointerleave


Patrick H. Lauke
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
twitter: @patrick_h_lauke | skype: patrick_h_lauke
Received on Saturday, 4 January 2014 22:07:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:48:09 UTC