Skip to content

Commit

Permalink
FLUID-3647: Committing Justin's patch which checks if an element is s…
Browse files Browse the repository at this point in the history
…elected before calling blur on it.

svn path=/fluid/infusion/trunk/; revision=9825
  • Loading branch information
michelled committed Apr 14, 2010
1 parent 89f7cb2 commit a04fafa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/webapp/framework/core/js/jquery.keyboard-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a04fafa

Please sign in to comment.