mirror of
https://github.com/fadden/6502bench.git
synced 2025-02-07 14:31:00 +00:00
Recognize mouse thumb-button for navigate-back
There's a common convention for using one of the thumb buttons on the side of the mouse to mean "back", notably in web browsers. I keep hitting it without thinking about it, so let's just make it official.
This commit is contained in:
parent
b97f7ca3d8
commit
2b6a76fad0
2
SourceGen/AppForms/ProjectView.Designer.cs
generated
2
SourceGen/AppForms/ProjectView.Designer.cs
generated
@ -1222,8 +1222,8 @@ namespace SourceGen.AppForms
|
||||
this.codeListView.RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(this.codeListView_RetrieveVirtualItem);
|
||||
this.codeListView.SelectedIndexChanged += new System.EventHandler(this.codeListView_SelectedIndexChanged);
|
||||
this.codeListView.VirtualItemsSelectionRangeChanged += new System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventHandler(this.codeListView_VirtualItemsSelectionRangeChanged);
|
||||
this.codeListView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.codeListView_MouseClick);
|
||||
this.codeListView.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.codeListView_MouseDoubleClick);
|
||||
this.codeListView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.codeListView_MouseDown);
|
||||
//
|
||||
// columnOffset
|
||||
//
|
||||
|
@ -1963,15 +1963,12 @@ namespace SourceGen.AppForms {
|
||||
dlg.Dispose();
|
||||
}
|
||||
|
||||
private void codeListView_MouseClick(object sender, MouseEventArgs e) {
|
||||
//if (e.Button == MouseButtons.Left) {
|
||||
// Debug.WriteLine("LEFT CLICK");
|
||||
//} else if (e.Button == MouseButtons.Right) {
|
||||
// Debug.WriteLine("RIGHT CLICK");
|
||||
// //ShowRightClickMenu();
|
||||
//} else {
|
||||
// Debug.WriteLine("CLICK " + e.Button);
|
||||
//}
|
||||
private void codeListView_MouseDown(object sender, MouseEventArgs e) {
|
||||
// MouseClick only fires for certain buttons and certain locations. MouseDown
|
||||
// fires for all buttons so long as the pointer is in the codeListView area.
|
||||
if (e.Button == MouseButtons.XButton1 && navigateBackToolStripButton.Enabled) {
|
||||
navigateBackToolStripButton_Click(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
private void codeListView_MouseDoubleClick(object sender, MouseEventArgs e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user