Skip to content

Commit

Permalink
Reference safari focus node properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jul 20, 2011
1 parent a0d958c commit 905ea88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ return declare([List], {
if(has("ie") < 8){
cellFocusedElement.style.position = "";
}
if(has("safari") && cellFocusedElement.firstChild.tagName == "TABLE"){
put(cellFocusedElement, "+", cellFocusedElement.firstChild); // move the elemetn out
put(cellFocusedElement, "!"); // delete it
if(has("safari") && cellFocusedElement.tagName == "TABLE"){
var focusElement = cellFocusedElement.parentNode;
put(focusElement, "+", cellFocusedElement); // move the elemetn out
put(focusElement, "!"); // delete it
}
event.cell = cellFocusedElement;
listen.emit(element, "cellfocusout", event);
Expand Down

0 comments on commit 905ea88

Please sign in to comment.