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:
parent
c63f70d0fd
commit
3d9ba87077
2 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue