Add F2 shortcut for renaming item in files import dialog

This commit is contained in:
Wojciech Figat
2021-11-24 17:41:41 +01:00
parent 05d0e1bdcc
commit 7d970de5ce

View File

@@ -189,6 +189,19 @@ namespace FlaxEditor.Content.Import
return true;
}
public override bool OnKeyDown(KeyboardKeys key)
{
if (base.OnKeyDown(key))
return true;
switch (key)
{
case KeyboardKeys.F2:
StartRenaming();
return true;
}
return false;
}
/// <summary>
/// Shows the rename popup for the item.
/// </summary>