Closed CatHood0 closed 2 weeks ago
I will solve the conflicts of this PR and the others soon.
Closing this PR since I don't have permission to push to the fork or merge changes to the master
branch of this repo while fixing the conflicts. Submitted a new PR (#2368).
Description
A new parameter was added with the name
onKeyPressed
, which as its name indicates, calls this function every time a key on the keyboard is pressed.Why was this done?
This is because previously the user never had the opportunity to prevent a key from executing its default function, because we handled all this internally.
It was decided to pass two parameters in this function, the
KeyEvent
and aNode
that corresponds to the current node that is in selection.Example
If we want to prevent all
Embed Objects
from being deleted, we would only have to create a function such that:Related Issues
Fix #2308
[x] โจ New feature: Adds new functionality without breaking existing features.
[ ] ๐ ๏ธ Bug fix: Resolves an issue without altering current behavior.
[ ] ๐งน Code refactor: Code restructuring that does not affect behavior.
[ ] โ Breaking change: Alters existing functionality and requires updates.
[ ] ๐งช Tests: Adds new tests or modifies existing tests.
[ ] ๐ Documentation: Updates or additions to documentation.
[ ] ๐๏ธ Chore: Routine tasks, or maintenance.
[ ] โ Build configuration change: Changes to build or deploy processes.