Turning off middle click paste on Linux?

조회 수: 8 (최근 30일)
Wouter Verstraelen
Wouter Verstraelen 2021년 3월 17일
답변: T.Nikhil kumar 2024년 2월 15일
I've been using MATLAB for a while on Windows, but recently moved to Linux (Ubuntu 20.04).
I'm generally satisfied by this, but one issue that I'm facing is that I accidentally end up pasting stuff in the middle of my code when scrolling due to the primary selection keyboard...
The popular solutions to turn off this feature in the system settings seem to work only temporarily for me.
However, I found that this can also be a softwarewise setting as it can be turned off in VSCode ( https://github.com/microsoft/vscode/issues/14610 ) . Is there a similar setting to turn off middle click paste in the MATLAB editor?

답변 (1개)

T.Nikhil kumar
T.Nikhil kumar 2024년 2월 15일
Hello Wouter,
I acknowledge that you’re looking for a setting for middle-click-paste in Linux that can be turned off by users.
As of now, there isn't a built-in option within MATLAB's preferences to disable the middle mouse button paste functionality specifically within the MATLAB editor on Linux systems. This feature is generally tied to the X Window System (X11) on Linux and is a standard behavior across many applications.
A possible workaround can be to use ‘xmodmap’ to disable the middle mouse button. This is not specific to MATLAB but will affect all applications, which may or may not be desirable. To do this, you can run the following command in your terminal:
xmodmap -e "pointer = 1 0 3"
This command will effectively disable the middle mouse button.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by