src/km.js
// effective ` map as a dictionary, kept in sync with the prefs
effective ` map as a dictionary, kept in sync with the prefs
effective ` map as a dictionary kept in sync with the prefs
function updBQ() {
    bq = {}; D.bq = bq;
    const lc = D.prf.kbdLocale();
    const l = D.kbds.layouts[lc] || D.kbds.layouts.en_US;
    const n = l[0].length;
    for (let i = 0; i < 2; i++) {
      for (let j = 0; j < n; j++) {
        const name = l[i][j];
        bq[name] || (bq[name] = l[2 + i][j]);
      }
    }
    const s = D.prf.prefixMaps()[lc];
    if (s) for (let i = 0; i < s.length; i += 2) bq[s[i]] = s[i + 1];
  }
function updBQ ( ) { bq = { } ; D . bq = bq ; const lc = D . prf . kbdLocale ( ) ; const l = D . kbds . layouts [ lc ] || D . kbds . layouts . en_US ; const n = l [ 0 ] . length ; for ( let i = 0 ; i < 2 ; i ++ ) { for ( let j = 0 ; j < n ; j ++ ) { const name = l [ i ] [ j ] ; bq [ name ] || ( bq [ name ] = l [ 2 + i ] [ j ] ) ; } } const s = D . prf . prefixMaps ( ) [ lc ] ; if ( s ) for ( let i = 0 ; i < s . length ; i += 2 ) bq [ s [ i ] ] = s [ i + 1 ] ; }
effective ` map as a dictionary, kept in sync with the prefs
effective ` map as a dictionary kept in sync with the prefs