unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miguel Frasson <frasson@acrab.math.leidenuniv.nl>
Subject: Re: mouse clicks on tool-bar -- why not recognize different mouse buttons?
Date: 15 Oct 2004 09:02:17 +0200	[thread overview]
Message-ID: <gypt3kihvq.fsf@acrab.math.leidenuniv.nl> (raw)
In-Reply-To: 62E1B4CA-1E71-11D9-8E1A-000D93505B76@swipnet.se

"Jan D." <jan.h.d@swipnet.se> writes:

> > However, since a tool-bar item is just a graphic (not a specific name,
> > like
> > a menu item), why not treat tool-bar items more like we treat portions of
> > the mode-line: why not recognize different mouse button events on
> > tool-bar
> > items? Why not, say, be able to have mouse-3 on a given tool-bar button
> > do
> > something different from mouse-1 on the same item?
> 
> No other application I know of does this.  Emacs is already very different
> from standard GUI applications, and adding more Emacs specific GUI things
> will only make it harder to port to current and future toolkits.  Also,
> what
> kind of operations do you have in mind?

Other mouse buttons could be bound, for example, for a popup menu for
customization, properties or related actions.  In firefox (maybe mozilla
is the same), for instance, a right click in the bookmark toolbar allows
customization.  It would be interesting to allow user to customize a
toolbar button, if it makes sense, by right-clicking on it, and selecting
"Customize this button", or "customize toolbar" there.  Think in a "Print"
button.  One can just print pushing it, but one could select printer,
select printing options, etc.  Why allow Control + click and not
right-button click, for instance?

Maybe, it was a implementation not-so-fortunate decision that toolbar
buttons are bounded to fake keys in tool-bar-map, and only modifiers can
be added (different mouse buttons don't generate modifiers)... This is the
problem on changing now.  However, if we have fake keys, why not to have
fake modifiers, in some sense?

Miguel.

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

  reply	other threads:[~2004-10-15  7:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15  6:03 mouse clicks on tool-bar -- why not recognize different mouse buttons? Drew Adams
2004-10-15  6:13 ` Jan D.
2004-10-15  7:02   ` Miguel Frasson [this message]
2004-10-15  7:50     ` Dhruva Krishnamurthy
2004-10-15 12:22 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gypt3kihvq.fsf@acrab.math.leidenuniv.nl \
    --to=frasson@acrab.math.leidenuniv.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).