The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

17 rader
603 B

  1. // On KaiOS, we may not be able to use a mouse cursor or navigate using Tab-based focus, so we install
  2. // special left/right focus navigation keyboard listeners, at least on public pages (i.e. so folks
  3. // can at least log in using KaiOS devices).
  4. function importArrowKeyNavigation() {
  5. return import(/* webpackChunkName: "arrow-key-navigation" */ 'arrow-key-navigation');
  6. }
  7. export default function loadKeyboardExtensions() {
  8. if (/KAIOS/.test(navigator.userAgent)) {
  9. return importArrowKeyNavigation().then(arrowKeyNav => {
  10. arrowKeyNav.register();
  11. });
  12. }
  13. return Promise.resolve();
  14. }