mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Feature: Content of Dialog can be copied into clipboard
This commit is contained in:
parent
ffe832aaa3
commit
6d1e21938d
1 changed files with 8 additions and 0 deletions
|
@ -387,6 +387,14 @@ namespace Beefy.widgets
|
||||||
evt.mHandled = true;
|
evt.mHandled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C'))
|
||||||
|
{
|
||||||
|
var clipboardText = scope String();
|
||||||
|
clipboardText.AppendF("{}\n{}", mTitle, mText);
|
||||||
|
BFApp.sApp.SetClipboardText(clipboardText, "");
|
||||||
|
evt.mHandled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue