Bugzilla – Attachment 109558 Details for
Bug 26041
Accessibility: The date picker calendar is not keyboard accessible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26041: Enable keyboard navigation without 'ctrl'
Bug-26041-Enable-keyboard-navigation-without-ctrl.patch (text/plain), 2.17 KB, created by
Nick Clemens (kidclamp)
on 2020-09-02 17:55:10 UTC
(
hide
)
Description:
Bug 26041: Enable keyboard navigation without 'ctrl'
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-09-02 17:55:10 UTC
Size:
2.17 KB
patch
obsolete
>From 627f9c5e41158b4b7e622f4b2162df160ce82126 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 22 Jul 2020 13:28:44 +0100 >Subject: [PATCH] Bug 26041: Enable keyboard navigation without 'ctrl' > >This patch enables keyboard navigation using the arrow keys without the >need to hold the control key for the jQuery UI datepicker. > >Test plan >1/ Navigate to an item in the opac and attempt to place a hold >2/ On the resultant screen, use keyboard navigation to trigger the 'Show >more options' dropdown. >3/ Focus on one of the date inputs using keyboard navigation. >4/ Use 'ctrl + arrow' keys to navigate the datepicker. >5/ Note that prior to the patch using 'bare' arrow keys does not trigger >anything >6/ Apply the patch and confirm that the datepicker can now be naviated >using the arrow keys without holding the ctrl key. >7/ Confirm that using the ctrl key combinations continue to work as >expected too. >8/ Signoff > >Signed-off-by: Brandon J <brandon.jimenez@inLibro.com> > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >index 83d67c9855..f74e92ed7e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >@@ -80,5 +80,21 @@ > } > }); > }); >+ >+ // jQuery Datepicker - a11y: Map arrow keys >+ var doKeyDown = $.datepicker._doKeyDown >+ $.extend($.datepicker, { >+ _doKeyDown: function(event) { >+ if (event.which === $.ui.keyCode.LEFT || >+ event.which === $.ui.keyCode.RIGHT || >+ event.which === $.ui.keyCode.UP || >+ event.which === $.ui.keyCode.DOWN) { >+ event.ctrlKey = true; >+ doKeyDown(event); >+ } else { >+ doKeyDown(event); >+ } >+ } >+ }); > //]]> > </script> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26041
:
107176
|
107274
|
107276
|
108664
|
109470
|
109544
| 109558