From e15dde05614d62807a05a732f728c14594efc67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 24 Jan 2012 13:58:44 +0100 Subject: [PATCH 1/5] make the keyboard handler work on the map div as opposed to the document --- lib/OpenLayers/Handler/Keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Handler/Keyboard.js b/lib/OpenLayers/Handler/Keyboard.js index 0372564299..c446cb0988 100644 --- a/lib/OpenLayers/Handler/Keyboard.js +++ b/lib/OpenLayers/Handler/Keyboard.js @@ -73,7 +73,7 @@ OpenLayers.Handler.Keyboard = OpenLayers.Class(OpenLayers.Handler, { if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) { for (var i=0, len=this.KEY_EVENTS.length; i Date: Tue, 24 Jan 2012 13:59:00 +0100 Subject: [PATCH 2/5] improve the accessible.html example --- examples/accessible.html | 57 ++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/examples/accessible.html b/examples/accessible.html index d9b8a777b3..fcde73ebdb 100644 --- a/examples/accessible.html +++ b/examples/accessible.html @@ -31,6 +31,15 @@ font-size:1em; text-decoration:underline; } + a.accesskey { + color: white; + } + a.accesskey:focus { + color: #436976; + } + a.zoom { + padding-right: 20px; + }