mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 00:54:21 +01:00
Fixed a deadlock issue where the application would freeze when pressing Enter to create or edit a channel. The problem was caused by creating the dialog action inside the ui.input() closure, which held a lock on the input state while executing action handler code. The fix moves the action creation outside the closure, following the same pattern used in other input handlers throughout the codebase. Now we only check if the key was pressed inside the closure and handle the action creation afterwards. This resolves the freeze while maintaining the same functionality when clicking the button, as button clicks don't hold input state locks.