Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux桌面KDE下中键关闭标签页会粘贴剪贴板 #13309

Closed
3 tasks done
Littleweisheit opened this issue Nov 29, 2024 · 6 comments
Closed
3 tasks done

Linux桌面KDE下中键关闭标签页会粘贴剪贴板 #13309

Littleweisheit opened this issue Nov 29, 2024 · 6 comments

Comments

@Littleweisheit
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

KDE有个特性选中即复制,然后中键粘贴。和ctrl c+v是不同的剪贴板。两者独立。
关闭标签页的同时,会粘贴剪贴板内容。我就奇怪,怎么会有多余内容。

Expected result

关闭标签页

Screenshot or screen recording presentation

No response

Version environment

- Version: 最新
- Operating System: KDE桌面环境
- Browser (if used):

Log file

不需要

More information

No response

@Littleweisheit
Copy link
Author

中键关闭标签页的时候不粘贴就好

@TCOTC
Copy link
Contributor

TCOTC commented Nov 29, 2024

这个是 Linux 的问题,不是思源的问题。

不过监听中键不知道能不能阻止在 Linux 下的默认行为。

@Littleweisheit
Copy link
Author

Littleweisheit commented Nov 29, 2024

这个是 Linux 的问题,不是思源的问题。

不过监听中键不知道能不能阻止在 Linux 下的默认行为。

这是KDE的特性,其他软件关闭标签页并不会这样比如Kate

@Menghuan1918
Copy link
Contributor

Menghuan1918 commented Nov 30, 2024

这个是 Linux 的问题,不是思源的问题。
不过监听中键不知道能不能阻止在 Linux 下的默认行为。

这是KDE的特性,其他软件关闭标签页并不会这样比如Kate

这实际上是X11的PRIMARY剪贴板特性,思源关闭标签页会粘贴实际上是触发了这个剪贴板。而且似乎没法单独为electron应用关闭这个功能....

图片

不过VSCode的标签页不会触发,不知道是不是有额外设置什么,待各位大神探究了:

图片

@88250 88250 assigned 88250 and unassigned 88250 Dec 1, 2024
@88250
Copy link
Member

88250 commented Dec 1, 2024

研究了下不知道咋搞,暂时先关闭,如果有人知道的话麻烦 PR,多谢。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 7, 2024

关联 #13395

Vanessa219 pushed a commit that referenced this issue Dec 10, 2024
* 🐛 Fix Linux key paste issue in tab

* Better way to fix Linux key paste issue in tab

* Only work on linux

* Fix Linux key paste issue in tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants