1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:17:35 +00:00

PixelPaint: Enable more text tool keyboard shortcuts

This commit allows the text tool's internal TextEditor component to
handle keyboard shortcuts that would normally be handled by menu
actions.

The shortcuts that can now be used are: cut, copy, paste, undo, redo
and select all.
This commit is contained in:
Tim Ledbetter 2023-01-28 07:00:44 +00:00 committed by Linus Groh
parent c63f70d0fd
commit 3d9ba87077
2 changed files with 16 additions and 0 deletions

View file

@ -22,6 +22,7 @@ class TextToolEditor : public GUI::TextEditor {
public:
virtual ~TextToolEditor() override = default;
virtual void handle_keyevent(Badge<TextTool>, GUI::KeyEvent&);
NonnullRefPtrVector<GUI::Action> actions();
protected:
TextToolEditor();