terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Media and other keys autoscroll the terminal

Open tgross35 opened this issue 5 years ago • 5 comments

Description

Keys that aren't meant to insert characters seem to jump the terminal to the bottom where input is being awaited. This includes media buttons.

Steps to reproduce

Open any terminal tab (tested with both Ubuntu and Powershell) and run anything to fill up the screen (e.g. run ls 5 times). Scroll up until the text input area is off the page.

Press any non-typing character that isn't a modifier (tested with "calculator" key, play/pause, and volume control keys)

Expected Behavior

These keys should have no effect on terminal

Actual behavior

Terminal scrolls to the bottom of the page where a new line is

ezgif-7-c7e99acf7c07

In this video I press the mute key or the calculator key, causing the terminal to jump

Version Info

Windows Terminal Version: 0.10.781.0

tgross35 avatar Apr 15 '20 20:04 tgross35

Yeah, that's a fair pull. We should only scroll on "input" if there actually was input.

DHowett-MSFT avatar Apr 17 '20 01:04 DHowett-MSFT

Any updates on this? This is still a problem on the latest version.

Decimation avatar Nov 17 '22 18:11 Decimation

Nope. We'll make sure to update this thread when there is. In the meantime, might I recommend the Subscribe button? image That way you'll be notified of any updates to this thread, without needlessly pinging everyone on this thread ☺️

zadjii-msft avatar Nov 17 '22 18:11 zadjii-msft

This is also happening to me when clicking within a PowerShell window to highlight text.

squarestopsthere avatar Dec 20 '24 23:12 squarestopsthere

Pretty sure this is due to the IsInputKey function. It needs to be swapped to a whitelist, or we need to add the volume vkey. Tagged it up for 1.26, because it's probably easy to fix.

lhecker avatar Nov 25 '25 15:11 lhecker