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

Summary: it should be possible to bind a mouse button to an action
Product: editor Reporter: mikeskells <mikeskells>
Component: Key bindingsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: eddie_bax, sprint
Priority: P1    
Version: 7.3.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Screenshot of Options -> Keymap screen

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 ?