PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

ZoomIt DemoType inserts extra characters with "Drive Input With Typing" option

Open jongalloway opened this issue 10 months ago • 0 comments

Microsoft PowerToys version

0.89.0

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

ZoomIt

Steps to reproduce

When using the DemoType feature of ZoomIt 8+, I am finding that extra characters are inserted when I type quickly while using the "Drive Input With Typing" feature. This doesn't happen immediately, it usually happens after about 75 characters.

I originally hit this when trying to type C# code in VS Code, but was able to reproduce it in Notepad and Word. If I turn the turn the typing speed very low (under about "10"), I am able to type several lines of code code in, but it's a little too slow for a code based demo and it still blows up after a few lines.

✔️ Expected Behavior

Using this script which has been copied into my clipboard:

[start]
public void Concat<T>(params ReadOnlySpan<T> items)
{
    for (int i = 0; i < items.Length; i++)
    {
        Console.Write(items[i]);
        Console.Write(" ");
    }
    Console.WriteLine();
}

using System.Threading;

Lock myLock = new();

Console.WriteLine("Starting critical section...");
using (myLock.EnterScope())
{
    Console.WriteLine("Inside critical section.");
}
Console.WriteLine("Exited critical section.");

// Prior to C# 13
Console.WriteLine("\u001b[1mThis is a bold text\u001b[0m");

// With C# 13
Console.WriteLine("\e[1mThis is a bold text\e[0m");
[end]

I then go to VS Code, Notepad, etc. and activate DemoType with Ctrl-7. I then type keys in the home row (asdfjkl;) at a reasonable speed. I am not using any control or system keys. I expect to see my code typed into the code editor window.

❌ Actual Behavior

I get output that looks like this:

public void Concat<T>(params eadOnlySpan<T> tems)
{
    foro (nt( <( es.Length;i++)
    {
        Conosoe.])
        C        Conoso 
d    }
    Conosoe.())
}
}
usuin m.eaedig;

LoLckmy
ck  

Other Software

I have verified this on two computers in multiple editors. I first tried shutting off a bunch of features in VS Code, but then was able to repro the exact same output in Notepad.

I'm not running any weird utilities, mostly just PowerToys :)

jongalloway avatar Mar 05 '25 05:03 jongalloway