This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70961 - it should be possible to bind a mouse button to an action
Summary: it should be possible to bind a mouse button to an action
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3.1
Hardware: All All
: P1 blocker with 15 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 22:40 UTC by mikeskells
Modified: 2015-01-08 14:14 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot of Options -> Keymap screen (53.56 KB, image/png)
2014-08-20 11:57 UTC, eddie_bax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikeskells 2006-01-03 22:40:40 UTC
SOme mice have more buttons and more gestures that a standard 2 button mouse. 
There is some support for th addition middle button in scrolling, but outside 
that there seems to be little or no support for the additional buttons

I would like to associate the middle button click with additional actions, 
maybe paste

I have a 5 button mouse, and the 2 addional buttons are used in windows 
applications typically as as forward/back pair

I cannot associate the clicks on the additional buttons to the back/forward 
actions in NB

I believe that this should be configurable in a similar manner to configure 
the keyboard shortcuts
Comment 1 catweasle 2014-01-11 10:55:50 UTC
Netbeans *does* support mouse related shortcuts (CTRL+click = go to declaration...) but these shortcuts are not supported by the keymap editor.
Comment 2 Svata Dedic 2014-01-11 12:19:21 UTC
they keymap editor is ... a *keymap* editor ;) and is designed as such. Sadly the SPI towards individual components (ie editor, navigator, explorer, menu) does not support the notion of mouse gestures, it's designed around keystrokes, sadly.

I agree that it could be generalized into a "shortcut editor", accepting even mouse clicks/gestures or even potentially some weird gestures if a tablet/touchpad is used.

Not a task for 8.0
Comment 3 eddie_bax 2014-08-20 11:57:16 UTC
Created attachment 148785 [details]
Screenshot of Options -> Keymap screen

I noticed this menu when your choose 'Edit...' or 'Add alternative'
maybe it would be an easier solution to add mouse4 and mouse5 (back and forward mouse buttons) to this screen ?