Permalink
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...
1 parent 89f7cb2 commit a04fafadcbd6157af9c06c5f62baeef679306350 @michelled michelled committed Apr 14, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 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;

0 comments on commit a04fafa

Please sign in to comment.