Skip to content

Commit

Permalink
When focussing a selectable item, select the existing content
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim O'Halloran committed May 17, 2021
1 parent 20eb97e commit 6d63183
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ $(document).on('keydown', function(event) {

if (nextTabbable) {
$(nextTabbable).focus();
if (typeof nextTabbable.select !== 'undefined') {
nextTabbable.select();
}
event.preventDefault();
}
});

0 comments on commit 6d63183

Please sign in to comment.