mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add F3/shift-F3 for find forward backwards in event browser
This commit is contained in:
+1
@@ -300,6 +300,7 @@
|
||||
this.findEvent.ToolTipText = "Find an event by type or name";
|
||||
this.findEvent.Leave += new System.EventHandler(this.jumpFind_Leave);
|
||||
this.findEvent.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.findEvent_KeyPress);
|
||||
this.findEvent.KeyDown += new System.Windows.Forms.KeyEventHandler(findEvent_KeyDown);
|
||||
this.findEvent.TextChanged += new System.EventHandler(this.findEvent_TextChanged);
|
||||
//
|
||||
// closeFind
|
||||
|
||||
@@ -878,6 +878,25 @@ namespace renderdocui.Windows
|
||||
findHighlight.Enabled = false;
|
||||
}
|
||||
|
||||
private void findEvent_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.F3)
|
||||
{
|
||||
if (findHighlight.Enabled)
|
||||
{
|
||||
findHighlight.Enabled = false;
|
||||
findHighlight_Tick(sender, null);
|
||||
}
|
||||
|
||||
if (findEvent.Text.Length > 0)
|
||||
{
|
||||
Find(e.Shift ? false : true);
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void findEvent_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
// escape key
|
||||
|
||||
Reference in New Issue
Block a user