Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FLUID-3647: Committing Justin's patch which checks if an element is s…

…elected before calling blur on it.

svn path=/fluid/infusion/trunk/; revision=9825
  • Loading branch information...
commit a04fafadcbd6157af9c06c5f62baeef679306350 1 parent 89f7cb2
@michelled michelled authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/webapp/framework/core/js/jquery.keyboard-a11y.js
View
6 src/webapp/framework/core/js/jquery.keyboard-a11y.js
@@ -369,7 +369,11 @@ var fluid = fluid || fluid_1_2;
var prepareShift = function(selectionContext) {
// FLUID-3590: FF 3.6 and Safari 4.x won't fire blur() when programmatically moving focus.
- selectionContext.selectedElement().blur();
+ var selElm = selectionContext.selectedElement();
+ if (selElm) {
+ selElm.blur();
+ }
+
unselectElement(selectionContext.selectedElement(), selectionContext);
if (selectionContext.activeItemIndex === NO_SELECTION) {
selectionContext.activeItemIndex = -1;
Please sign in to comment.
Something went wrong with that request. Please try again.