File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,22 @@ export const startFocusVisible = (rootEl?: HTMLElement): FocusVisibleUtility =>
3333 elements . forEach ( ( el ) => el . classList . add ( ION_FOCUSED ) ) ;
3434 currentFocus = elements ;
3535 } ;
36- const pointerDown = ( ) => {
36+ // SPACE triggers on iOS device with physical keyboard
37+ const pointerDown = ( ev : Event ) => {
38+ console . log ( 'pointerDown' , ev ) ;
3739 keyboardMode = false ;
3840 setFocus ( [ ] ) ;
3941 } ;
40-
42+ // Enter triggers on iOS device with physical keyboard
4143 const onKeydown = ( ev : Event ) => {
44+ console . log ( 'onKeydown' , ev ) ;
4245 keyboardMode = FOCUS_KEYS . includes ( ( ev as KeyboardEvent ) . key ) ;
4346 if ( ! keyboardMode ) {
4447 setFocus ( [ ] ) ;
4548 }
4649 } ;
4750 const onFocusin = ( ev : Event ) => {
51+ console . log ( 'onFocusin' , ev ) ;
4852 if ( keyboardMode && ev . composedPath !== undefined ) {
4953 const toFocus = ev . composedPath ( ) . filter ( ( el : any ) => {
5054 // TODO(FW-2832): type
You can’t perform that action at this time.
0 commit comments