Giter Site home page Giter Site logo

Comments (20)

epikkoder avatar epikkoder commented on September 12, 2024 20

The Slack issue is slightly annoying, but the Terminal problem (where it repeatedly pastes as you drag around) is potentially more serious if you have a multiline command in your clipboard. Imagine copying a command to delete the most recent row from a db table. Drag the tab around and a whole boatload of rows are gone! Really surprised they haven't pushed out a hotfix to this yet!

@vitaminj Version v0.81.1 Is now out with the fix.

from powertoys.

jaimecbernardo avatar jaimecbernardo commented on September 12, 2024 15

We've debugged and it's that when there's no key set for Paste as Markdown or JSON we're actually catching the "none" shortcut.
When you press Slack's tray icon, it sends the "None" shortcut.
@stefansjfw is working on a fix

from powertoys.

stefansjfw avatar stefansjfw commented on September 12, 2024 10

Very good catch. PR opened with the fix

from powertoys.

DHowett avatar DHowett commented on September 12, 2024 6

So this is why I keep finding weird stuff pasted into Slack!

from powertoys.

jaimecbernardo avatar jaimecbernardo commented on September 12, 2024 4

As a workaround for the time being, you can set a shortcut for "Paste as Markdown" and "Paste as JSON" and it should no longer exhibit this behavior.

from powertoys.

fritzmg avatar fritzmg commented on September 12, 2024 4

Wonder how many unsolicited pr0n links and sensitive credentials have been submitted accidentally by this bug :]

from powertoys.

vitaminj avatar vitaminj commented on September 12, 2024 4

The Slack issue is slightly annoying, but the Terminal problem (where it repeatedly pastes as you drag around) is potentially more serious if you have a multiline command in your clipboard. Imagine copying a command to delete the most recent row from a db table. Drag the tab around and a whole boatload of rows are gone! Really surprised they haven't pushed out a hotfix to this yet!

from powertoys.

MitchSchwartz avatar MitchSchwartz commented on September 12, 2024 2

Validating that I have this issue and that setting a shortcut for "Paste as Markdown" seems to have solved it.

Will see if I now start getting JSON pastes until I set that as well or if I only had that issue with markdown.
Edit: No surprise, I did. Had to fill that hotkey too.

Also curious, though out of scope: what is slack doing to trigger this?

from powertoys.

Dominiquini avatar Dominiquini commented on September 12, 2024 1

I'm having this problem when I try to rearrange my opened tabs on Windows Terminal (drag one of my tabs from one place to another)! When I do this, a bunch of texts are paste in the dragged terminal!

Thanks.

from powertoys.

stefansjfw avatar stefansjfw commented on September 12, 2024 1

Also curious, though out of scope: what is slack doing to trigger this?

@MitchSchwartz Left-clicking Slack systray icon sends None keyboard key. As these hotkeys were not set, and all modifier keys are not pressed this matched our not-set hotkey default state.

@Dominiquini Does setting To Markdown and To JSON hotkeys make the problem go away for you ?

from powertoys.

ThaDaVos avatar ThaDaVos commented on September 12, 2024 1

Thank you for fixing this - was driving me crazy the past week - but was happening for me with Clarion based software, each time I opened it or triggered a new window to open - just fyi

from powertoys.

mutebmuhd1403 avatar mutebmuhd1403 commented on September 12, 2024 1

Microsoft PowerToys version

0.81.0

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

Advanced Paste

Steps to reproduce

I attach a video the shows the behaviour. On Windows, when i have closed slack into systray and then open a chat window, all clipboard data is automatically inserted into slack. Even files i have copied in file explorer.

This does not happen when i just minimize to task bar instead of systray.

I do not press any key. Just open with a click on the systray icon.

The only plugin i have activated is Advanced Paste (Screenshot bellow). If i disable just this plugin or close power toys, the auto insert is gone.

This started immediately after todays update to 0.81.0.

This behaviour can lead to serious data breach if you do not pay attention.

powertoys.webm

image

✔️ Expected Behavior

No auto insert in any application.

❌ Actual Behavior

Auto insert with just focusing a window....

Other Software

Slack

Report

PowerToysReport_2024-05-22-13-13-02.zip

from powertoys.

stefansjfw avatar stefansjfw commented on September 12, 2024

Hi, could you attach /bugreport?
Thank you

from powertoys.

stefansjfw avatar stefansjfw commented on September 12, 2024

Does this happen with slack only? Or with other apps as well? Could you try e.g. notepad?

from powertoys.

brainfoolong avatar brainfoolong commented on September 12, 2024

Report added to original post.

No, as of now i only can see this in Slack. Signal, Notepad and office works fine, as far as i can see.

from powertoys.

brainfoolong avatar brainfoolong commented on September 12, 2024

I have debugged further and indeed, PowerToys make my system sending 1 special keystrokes when this plugin is enabled. I do not press any key (later i do CTRL+A and delete to remove pasted text), but when i use screenrecorder to record also system keystrokes, is see 1 'CTRL+V' automagically, when i just click the systray of slack. When i disable the powertoys plugin, no keystroke is sending anymore.

See new video.

powertoys-2.webm

from powertoys.

kuleshov-aleksei avatar kuleshov-aleksei commented on September 12, 2024

I have the same exact issue. Seems like that does not affect other applications that can be opened from systray (like discord or spotify)

from powertoys.

Dominiquini avatar Dominiquini commented on September 12, 2024

Also curious, though out of scope: what is slack doing to trigger this?

@MitchSchwartz Left-clicking Slack systray icon sends None keyboard key. As these hotkeys were not set, and all modifier keys are not pressed this matched our not-set hotkey default state.

@Dominiquini Does setting To Markdown and To JSON hotkeys make the problem go away for you ?
Yes, this solve the problem. Thanks!

from powertoys.

zadjii-msft avatar zadjii-msft commented on September 12, 2024

I'm gonna chime in here with microsoft/terminal#17324 as well. Looks like dragging a Terminal tab with Advanced Paste enabled will also repro similar behavior.

from powertoys.

nabeelr avatar nabeelr commented on September 12, 2024

Wonder how many unsolicited pr0n links and sensitive credentials have been submitted accidentally by this bug :]

Passwords would be my concern. Lots of people use password managers, and they often use the clipboard to paste passwords into text fields...

from powertoys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.