Re: 3 things

On Tue, Oct 20, 2015 at 04:01:01PM +0900, Ryosuke Niwa wrote:
> I don't think implementing keyboard shortcuts in JavaScript is a good idea. You end up sniffing the operating system name and behaving differently on each one.  e.g. Cmd+B on Mac to bold text but Ctrl+B to do the same on Windows.  The whole point of the Web platform is to provide an abstraction around such a platform-dependent behaviors.

There's another way to look at this question.  The web has a lot of
seats with keyboards.  Some of those seats are Mac seats, some of them
are Windows seats.  Some users will change seats.  If striking the
"same" key (where key same-ness is a matter of being either labeled the
same, or the same location w.r.t. the "home keys") produces the same
result on both, that's good.

Putting aside shortcuts for a moment, it's also good for the Tab
key and the Backspace/Delete (leftward erase) key to behave in a
platform-independent way.

One of the sticking points in creating a decent web editor today is
that you cannot create an interaction that is as consistent as keyboard
hardware is.

Dave

-- 
David Young
dyoung@pobox.com    Urbana, IL    (217) 721-9981

Received on Thursday, 22 October 2015 00:21:30 UTC