Debugger: Watch - Prevent Esc key from starting edit mode

This commit is contained in:
Sour 2019-01-29 17:22:28 -05:00
parent 43a4fefcd4
commit 62cb7271f5

View file

@ -293,9 +293,11 @@ namespace Mesen.GUI.Debugger
private void lstWatch_KeyPress(object sender, KeyPressEventArgs e)
{
if(lstWatch.SelectedItems.Count > 0) {
e.Handled = true;
StartEdit(e.KeyChar.ToString(), _keyDownItem);
_keyDownItem = null;
if(e.KeyChar >= ' ' && e.KeyChar < 128) {
e.Handled = true;
StartEdit(e.KeyChar.ToString(), _keyDownItem);
_keyDownItem = null;
}
}
}