LyX ⇒ Mousewheel / Middle button click, can it be disabled?
-
- Posts: 2
- Joined: Tue Jul 06, 2010 11:49 am
Mousewheel / Middle button click, can it be disabled?
I'm using LyX 1.6.5 on Windows XP, and recently I've noticed that clicking the mouse wheel (or probably the middle mouse button if you have one) will paste the previously selected text into the document where the cursor is at that point.
Can I disable this feature? I cannot find it in the options anywhere... I find it very annoying. When I'm scrolling large distances I might accidentally click the wheel, in which case I would paste possibly huge amounts of text at random positions... Especially when scrolling, something like that can be hard to notice. I just found out my introduction was completely scrambled (it looked like a secret message almost lol) because of this and I basically had to write it again, there was no saving it.
I'm seriously considering switching editors just because of this. I don't want to finish my report and then find out half my text is in the wrong place...
Thanks!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Mousewheel / Middle button click, can it be disabled?
Here's some instructions from Ubuntu's wiki for turning it off or changing the behavior.
Personally, I like it however.
If you're on another operating system, I've no clue.
-
- Posts: 2
- Joined: Tue Jul 06, 2010 11:49 am
Re: Mousewheel / Middle button click, can it be disabled?
Re: Mousewheel / Middle button click, can it be disabled?
Mousewheel / Middle button click, can it be disabled?
It’s been awhile since I used Windows, but if there’s there no way of preventing it from inside LyX, you could almost certainly intercept middle mouse wheel clicks with AutoHotKey, or even program them to do something else instead. AutoHotKey is probably the thing I miss most about Windows. (OK, the only thing I miss about Windows!)
Mousewheel / Middle button click, can it be disabled?
Re: Mousewheel / Middle button click, can it be disabled?
(I recently switched from Ubuntu to ArchLinux, but, yeah, more or less the same stuff is available.)
Mousewheel / Middle button click, can it be disabled?
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 1
#IfWinActive, LyX:
MButton::
MsgBox, Catch qwidget mouse click
return
#IfWinActive ; To turn off context sensitivity
then you compile it (select script and right click with mouse), and run the executable as Administrator. That's all.
If you want you can remove the Msgbox line:
SetTitleMatchMode, 1
#IfWinActive, LyX:
MButton::
return
#IfWinActive ;
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Mousewheel / Middle button click, can it be disabled?
The fix was by Jürgen Spitzmüller and can be seen here:
http://www.lyx.org/trac/changeset/d48e5330/lyxgit