llText('x', menuWidth*0.88, menuHeight*0.7);

        urlState.measures.length = 0;
        urlState.measures.push(0);
        const {width: barWidth} = ctx.measureText('[');
        for (let i = 1; i <= urlState.text.length; i++) {
          const {width} = ctx.measureText('[' + urlState.text.slice(0, i) + ']');
          urlState.measures.push(width - barWidth*2);
        }

        ctx.fillStyle = '#000';
        ctx.fillRect(10 + urlState.measures[urlState.cursor] - cursorWidth/2, 20, cursorWidth, urlBa