InputWidget (For Hotkey & Input dialogs) - After key event, automatically tab to the next control. Also, fix so display is "Shift + X" not "Shift+X"

This commit is contained in:
andres.delikat 2011-02-23 18:12:19 +00:00
parent 2de903182d
commit 6ebca99cd5
1 changed files with 4 additions and 3 deletions

View File

@ -46,6 +46,7 @@ namespace BizHawk.MultiClient
Bindings.Clear();
UpdateLabel();
}
this.Parent.SelectNextControl(this, true, true, true, true);
}
protected override void OnKeyPress(KeyPressEventArgs e)
@ -85,11 +86,11 @@ namespace BizHawk.MultiClient
{
string str = "";
if((modifiers & Keys.Shift)!=0)
str += "SHIFT+";
str += "SHIFT + ";
if ((modifiers & Keys.Control) != 0)
str += "CTRL+";
str += "CTRL + ";
if ((modifiers & Keys.Alt) != 0)
str += "ALT+";
str += "ALT + ";
str += key.ToString();
return str;
}