brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Closing working file with middle-click also pastes clipboard #13036

Open core-ai-bot opened 2 years ago

core-ai-bot commented 2 years ago

Issue by ianlamb Tuesday Jan 27, 2015 at 15:55 GMT Originally opened as https://github.com/adobe/brackets/issues/10473


I noticed a small bug that when I close a file in the side bar with middle-click it will paste my clipboard into the editor context as well.

core-ai-bot commented 2 years ago

Comment by peterflynn Tuesday Jan 27, 2015 at 21:03 GMT


Sounds like the same issue as #7216 or #6184. Does the problem go away if you choose Debug > Reload Without Extensions? If you click in a blank area of the UI (e.g. a blank part of the status bar at bottom), does it also paste? Does that occur in other apps too, or in your browser -- or is this only in Brackets?

Also, what OS are you on?

core-ai-bot commented 2 years ago

Comment by ianlamb Wednesday Jan 28, 2015 at 03:22 GMT


Strange, I wasn't noticing '$' anywhere, it was just dumping my clipboard. Could be related though.

This was on Xubuntu 14.04 LTS i386 at work. I just tried it at home on Windows 8 and can't reproduce. I can try the reload tomorrow morning and see if that fixes it.

core-ai-bot commented 2 years ago

Comment by ianlamb Wednesday Jan 28, 2015 at 15:25 GMT


I tried the Reload Without Extensions as well as restarting the entire client, I can still reproduce consistently. It's possibly a bug in Xubuntu, but I haven't noticed it happening in other text editors like Sublime.

core-ai-bot commented 2 years ago

Comment by peterflynn Wednesday Jan 28, 2015 at 20:22 GMT


@ianlamb What about this question?

If you click in a blank area of the UI (e.g. a blank part of the status bar at bottom), does it also paste?

(or does it only paste when middle-clicking a file in the sidebar, specifically)

Also, if you go to http://codemirror.net/mode/javascript/ and middle-click outside of the editor area, do you get the same behavior?

core-ai-bot commented 2 years ago

Comment by ianlamb Wednesday Jan 28, 2015 at 20:36 GMT


Clicking a blank area, such as an empty spot in the file explorer menu, it will paste if the cursor is currently focused in the text editor. If I left click to shift the focus and then middle-click it does nothing. However, no matter where the focus is closing a file always pastes at the cursor's last position. (does that make sense?)

This behaviour is not seen on the website you linked or any of my other text editors.

core-ai-bot commented 2 years ago

Comment by colin-guyon Tuesday Feb 10, 2015 at 10:04 GMT


I reproduce the same problem (OS: Linux Mint 17 Cinamon)

core-ai-bot commented 2 years ago

Comment by colin-guyon Tuesday Feb 10, 2015 at 10:07 GMT


And on this page http://codemirror.net/mode/javascript/ I also have the problem in fact

core-ai-bot commented 2 years ago

Comment by DrPandemic Sunday Mar 01, 2015 at 15:36 GMT


I have the same problem on Arch Linux with cinnamon. And I can't reproduce this on other text editor.

core-ai-bot commented 2 years ago

Comment by peterflynn Tuesday Mar 03, 2015 at 08:15 GMT


Can someone on Linux check if inserting e.preventDefault() here or here helps?

core-ai-bot commented 2 years ago

Comment by DrPandemic Wednesday Mar 04, 2015 at 01:59 GMT


It doesn't seem to make a difference for me

core-ai-bot commented 2 years ago

Comment by peterflynn Wednesday Mar 04, 2015 at 08:29 GMT


@DrPandemic What about either of these tests? http://jsfiddle.net/7mhec30m/

core-ai-bot commented 2 years ago

Comment by DrPandemic Friday Mar 06, 2015 at 01:10 GMT


In both cases, it doesn't paste what I have in my clipboard