This fixes CharInsert in LQT. LQT dynamically creates its own text boxes
and this code should take that into account.
Bug: 41220
Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487
}
}() );
- $( 'textarea, input:text' ).focus( function () {
- currentFocused = $(this);
- });
+ // Apply to dynamically created textboxes as well as normal ones
+ $( document ).on( 'focus', 'textarea, input:text', function () {
+ currentFocused = $( this );
+ } );
// HACK: make currentFocused work with the usability iframe
// With proper focus detection support (HTML 5!) this'll be much cleaner