diff --git a/resources/main.js b/resources/main.js index e69de29..57ff859 100644 --- a/resources/main.js +++ b/resources/main.js @@ -0,0 +1,11 @@ +/** + * Timeless-specific scripts + */ +jQuery( function ( $ ) { + + /** + * Focus on search box when 'Tab' key is pressed once + */ + $( '#searchInput' ).attr( 'tabindex', $( document ).lastTabIndex() + 1 ); + +} ); diff --git a/skin.json b/skin.json index 29bf3e7..22120df 100644 --- a/skin.json +++ b/skin.json @@ -57,9 +57,12 @@ ] }, "skins.timeless.js": { - "targets": [ "desktop", "mobile" ], + "targets": [ "desktop" ], "scripts": [ "resources/main.js" + ], + "dependencies": [ + "jquery.tabIndex" ] }, "skins.timeless.mobile": {