Widgets/TextAreaWidget: Add Ctrl+A (select all) support
This commit is contained in:
parent
bb93209713
commit
8299a5a4bd
|
|
@ -165,6 +165,16 @@ namespace Nz
|
||||||
|
|
||||||
switch (key.virtualKey)
|
switch (key.virtualKey)
|
||||||
{
|
{
|
||||||
|
// Select All (Ctrl+A)
|
||||||
|
case Keyboard::VKey::A:
|
||||||
|
{
|
||||||
|
if (!key.control)
|
||||||
|
break;
|
||||||
|
|
||||||
|
SetSelection(Vector2ui::Zero(), Vector2ui(std::numeric_limits<unsigned int>::max(), std::numeric_limits<unsigned int>::max()));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Copy (Ctrl+C)
|
// Copy (Ctrl+C)
|
||||||
case Keyboard::VKey::C:
|
case Keyboard::VKey::C:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue