[Rt-commit] rt branch, 4.2/rights-tab-keyboard-input, created. rt-4.1.13-19-gfb34532

Thomas Sibley trs at bestpractical.com
Mon Jun 17 19:35:58 EDT 2013


The branch, 4.2/rights-tab-keyboard-input has been created
        at  fb34532a592271094e80e63ea7afc504f830bf1e (commit)

- Log -----------------------------------------------------------------
commit fb34532a592271094e80e63ea7afc504f830bf1e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Jun 17 16:07:21 2013 -0700

    Disable jQuery UI 1.10.0's grabbing of key events on tabs
    
    The keyboard navigation handlers prevented typing certain characters,
    such as spaces, into the text input which is a child of the tab.
    Disabling key events from propagating to parents disables keyboard nav
    when inside the input.

diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index ec5ec69..dc26d0f 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -146,6 +146,8 @@ for my $category (@$Principals) {
         jQuery(function() {
             jQuery("#AddPrincipalForRights-"+<% lc $AddPrincipal |n,j%>).keyup(function(){
                 toggle_addprincipal_validity(this, true);
+            }).keydown(function(event){
+                event.stopPropagation() // Disable tabs keyboard nav
             });
 
             jQuery("#AddPrincipalForRights-"+<% lc $AddPrincipal |n,j%>).on("autocompleteselect", addprincipal_onselect);

-----------------------------------------------------------------------


More information about the Rt-commit mailing list