[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrollbar and mouse buttons

From: Xah
Subject: Re: scrollbar and mouse buttons
Date: Thu, 1 May 2008 04:57:04 -0700 (PDT)
User-agent: G2/1.0

On Apr 30, 9:14 am, giglio robbo' d'acciaio <address@hidden> wrote:
> In previous version mouse buttons left and right had a different behavior,
> left click on the scoll-bar was linked to PgDown, right click to PgUp and the
> middle click to go-to-the-point.
> How can I ripristinate this behavior.

untested, but you can do:

(global-set-key (kbd "<down-mouse-1>") 'func-name) ; left mouse button
(global-set-key (kbd "<down-mouse-2>") 'func-name) ; mid mouse button
(global-set-key (kbd "<down-mouse-3>") 'func-name) ; right mouse

Useful function to know are:

describe-key, describe-function.

Effectively, they let you find out what function is bind to what input
(keypress or menu or mouse click), and vice versa.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]