When right-clicking on selected text in the editor window (e.g. to 'Evaluate Selection'), the cursor jumps up by a line prior to acting on the selection, so it tries to act on the wrong selection. Has anyone else seen this behavior? Any ideas how to fix it? This first started with Matlab R2017b.

댓글 수: 9

Mukul Rao
Mukul Rao 2017년 12월 5일
편집: Mukul Rao 2017년 12월 6일
Hi Robert, can you share what OS you run MATLAB on?
Robert
Robert 2017년 12월 6일
I use MacOS.
Greg
Greg 2017년 12월 7일
Does MacOS include a keyboard shortcut for 'Evaluate Selection'? With the menu open, it should be on the right side of the menu. In Windows it is F9, quite handy.
Obviously a workaround, not a solution.
Robert
Robert 2017년 12월 7일
A keyboard shortcut would be nice. I’ll take a look.
wlieu
wlieu 2017년 12월 12일
I unknowingly started a new thread on this problem. So the keyboard shortcut for evaluating selection is nice but what about the rest of the options offered by right clicking? This needs to be fixed. It seems to be related to the Apple trackpad scrolling (the jumps do not happen with a mouse).
Yuxiao QIN
Yuxiao QIN 2018년 1월 29일
I am having the exact same problem with OS 10.13 and R2017b.
Jason
Jason 2018년 3월 12일
I am also having this problem with OS 10.13.3 and MATLAB R2017B and R2018A
Yuxiao QIN
Yuxiao QIN 2018년 3월 19일
편집: Walter Roberson 2018년 4월 7일
(the bug exists in 2018a but the all temporary fixes in the aforementioned post works)
Manuel Röhrl
Manuel Röhrl 2018년 4월 23일

Same for me.

MATLAB R2018a | MacBook Air 5,2 | macOS High Sierra 10.13.4

댓글을 달려면 로그인하십시오.

답변 (12개)

Greg
Greg 2017년 12월 7일

0 개 추천

This happens on my Win10 system if my cursor is not properly centered on the desired text (mouse cursor changes from the pointer to the I beam). Your Mac may have a high enough pixel density that you can't tell the cursor is offset, but MATLAB detects that is.

댓글 수: 4

Robert
Robert 2017년 12월 7일
I’m confident it’s more than a cursor placement issue; even fine manipulation of the cursor doesn’t solve the problem.
Greg
Greg 2017년 12월 7일
Does it happen every time, occasionally, or often?
Robert
Robert 2017년 12월 9일
Often, but not always. The first couple of times in a session, the right-click seems to work fine, then I start getting that weird cursor jump.
And thank you, Greg, for helping me get to the bottom of this; it's certainly not a show-stopper but it is annoying.
wlieu
wlieu 2017년 12월 12일
It's not a show stopper but first time it happened I saved a bunch wrong variables in Workspace because of the jumps. Workaround now is to use (Mac) control-leftclick to invoke options.

댓글을 달려면 로그인하십시오.

Hexuan Wang
Hexuan Wang 2018년 2월 13일

0 개 추천

I'm also having the exact problem on Mac 10.13.3, with the newest version of Matlab (Matlab2017b) installed. It's very frustrating.
Prashidha Kharel
Prashidha Kharel 2018년 3월 6일

0 개 추천

In my case, right clicking on macbook pro (i.e. clicking with two fingers) will cause the context menus to flash then disappear in a blink. So it's almost impossible to access the context menu with the right click. The only work around is to press control then left click (^ + left click). But still it is annoying to always have to press control.
Here's a video of the right click issue: https://streamable.com/qtn9z
OS: MacOS High Sierra 10.13.3 (17D102)
Macbook Pro 2017
MATLAB: Matlab 2017b
Frank van Diggelen
Frank van Diggelen 2018년 4월 7일

0 개 추천

Same problem for me, Matlab R2017b and R2018a, Mac OS 10.13.3
Zahra Esfahani
Zahra Esfahani 2018년 5월 16일
편집: Zahra Esfahani 2018년 5월 31일

0 개 추천

SOLUTION: I had the same problem with OS 10.13.3 and MATLAB R2018A. Try to touch the trackpad with two fingers as fast as you can then the cursor won't jump up any more and open the menu for the selected area! Good Luck :)
Yuki Itoh
Yuki Itoh 2018년 5월 23일

0 개 추천

I have the same issue for a while (MATLAB R2018a in OS 10.13.4), too. Enabling 'Tap to click' in the trackpad menu in System Preferences mitigates the problem a bit. Clicking with two fingers still causes the same problem, but instead tapping with two fingers works fine. This is more comfortable than 'Ctrl & single click' for me.
Peng Cheng
Peng Cheng 2018년 5월 25일

0 개 추천

The exactly same issue.
Janos Buttgereit
Janos Buttgereit 2018년 6월 1일

0 개 추천

Same issue here with 2018a on a current MacBookPro...
Menna El Hefnawy
Menna El Hefnawy 2018년 6월 25일

0 개 추천

Same here. Matlab 2018a. quick solution is tap it with two fingers instead of clicking.
Richard Doyle
Richard Doyle 2018년 7월 23일

0 개 추천

10.11.6 2018a Related problem. I'm using two finger scrolling to manually inspect several thousand files to develop a training set. When I stop and lift one finger, the text snaps back one line by itself. I have similar problems when trying to position selections in the guide gui menu that contains my training set edit functions. It looks like the problem was introduced in 2017b. I've had to step back to 2017a.

댓글 수: 1

bdcxns
bdcxns 2018년 11월 26일
Same problem for me in Mojave. It is very frustrating and it seems the latest version that does not have this problem is Matab 2017a. Very disappointed Matlab does not fix this for such a long time.
I tried testing this in the installation step that let you choose toolboxes, this issue even occurs there. The window bounces back after I tap two fingers or scrolls up & down. Thereby it might be caused by issues in JRE, I guess.

댓글을 달려면 로그인하십시오.

Iain
Iain 2018년 8월 16일

0 개 추천

Same problem: R2018a, "MacBookPro14,2", OS X 10.12.6.
System wide disabling of two finger scrolling fixed the problem.

댓글 수: 1

Jan
Jan 2019년 3월 7일
편집: Jan 2019년 3월 7일
That's a workaround, not a fix.

댓글을 달려면 로그인하십시오.

Marcia Bécu
Marcia Bécu 2021년 7월 1일

0 개 추천

Same problem

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

태그

질문:

2017년 12월 3일

답변:

2021년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by