You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

鼠标中键(滚轮按压)粘贴选中文本异常问题咨询

关于鼠标中键粘贴选中文本的异常(实则是默认功能)

Hey Daniel, this is actually a feature (not a bug) built into most desktop operating systems and apps—let me break down what’s happening and how you can adjust it:

核心原理:两个独立的剪贴板

Your system has two separate clipboard "stores" working here:

  • System Clipboard (Ctrl+C/V): This only updates when you actively copy content (via Ctrl+C, right-click → Copy, etc.). When you use Ctrl+V, you’re pasting from this store.
  • Selection Clipboard (Middle-Click Paste): This automatically captures any text you highlight with your mouse—no explicit copy action needed. Clicking your middle mouse button pastes directly from this store, which explains why you’re seeing the newly selected text instead of your Ctrl+C content.

如何调整这个行为(分系统)

Windows

  • Registry Edit:
    1. Press Win+R, type regedit, and hit Enter to open the Registry Editor.
    2. Navigate to HKEY_CURRENT_USER\Control Panel\Mouse.
    3. Find the MiddleButtonAction entry:
      • Set its value to 0 to disable middle-click paste (only keeps scroll functionality).
      • The default 1 enables the auto-paste of selected text.
    4. Restart your PC for changes to take effect.
  • Third-Party Mouse Software: If you use a mouse with custom drivers (Logitech G HUB, Razer Synapse, etc.), open the software, find the middle button settings, and reassign it to "Scroll" or another function instead of "Paste Selected Text".

macOS

macOS doesn’t have this behavior by default, but it can be enabled by third-party tools:

  • iTerm2: Open Preferences → Advanced → Under "Mouse", uncheck "Paste selection on middle click".
  • Third-Party Mouse Drivers: Open your mouse’s companion app, navigate to button customization, and adjust the middle button’s action to disable auto-paste.

Linux (X11)

This is the default behavior for X11-based systems:

  • Sync Clipboards: Use tools like autocutsel to sync the primary (selection) clipboard with the system (Ctrl+C/V) clipboard, so middle-click and Ctrl+V paste the same content. Install it via your package manager (e.g., sudo apt install autocutsel on Debian/Ubuntu) and run it on startup.
  • Desktop Environment Settings:
    • GNOME: Open Settings → Keyboard → Keyboard Shortcuts, or use extensions like Clipboard Indicator to manage clipboard behavior.
    • KDE: Open System Settings → Input Devices → Mouse → Adjust the middle button’s paste action under the "Buttons" tab.

App-Specific Fixes

If this only happens in certain apps (like browsers or text editors), check the app’s settings:

  • Look for "Mouse" or "Clipboard" sections, and disable any option labeled "Middle-click paste selected text" or similar.

内容的提问来源于stack exchange,提问作者Daniel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:45:13