Does anyone know where the code is that triggers a save on forms panels when command + s are pressed
I'm want to submit a PR to adjust this behaviour as the strikethrough short keys trigger the save when focused into a richtext field. this also works the other way round where if you save it will strikethrough an item before it's saved.
2 Replies
it is
keyBindings(['mod+s'])
https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/Resources/Pages/CreateRecord.php#L214GitHub
filament/packages/panels/src/Resources/Pages/CreateRecord.php at 3....
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
thanks @LeandroFerreira , looks like I wont be able to solve it on this side, but I wonder if I can stop propagation from the Richtext editor maybe, so the key bind events stick within.
only downside is it would disable the key bind saving when the richeditor is focussed