mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-26 05:37:56 +08:00
accept extract dialog on enter key press.
This commit is contained in:
@@ -97,6 +97,13 @@ namespace GARbro.GUI
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void acb_OnEnterKeyDown (object sender, KeyEventArgs e)
|
||||
{
|
||||
string path = (sender as AutoCompleteBox).Text;
|
||||
if (!string.IsNullOrEmpty (path))
|
||||
this.DialogResult = true;
|
||||
}
|
||||
|
||||
public void CanExecuteAlways (object sender, CanExecuteRoutedEventArgs e)
|
||||
{
|
||||
e.CanExecute = true;
|
||||
|
||||
Reference in New Issue
Block a user