Remove defaultId from remove dialog #176
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Siderus/Orion!176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/escape-should-close-remove-dialog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed?
This is related to https://gitlab.com/siderus/orion/App/issues/17 and https://github.com/Siderus/Orion/issues/136#issuecomment-403224003
Before this change (with defaultId set to 1), pressing escape would close the dialog on windows and linux and return 0, but on macOS nothing would happen.
I've looked into implementing this, listening for the keypress, but there is no way to close the dialog programatically at the moment: https://github.com/electron/electron/issues/5577 .
What I noticed though is that some dialog do close when pressing escape on mac and that is because they don't have a
defaultId.If we remove the
defaultIdpressing escape would work on mac as well, but that means pressing enter no longer deletes the file, but cancels the operation instead.Thoughts?
What are the defaults if we don't specify anything?
I would close this PR and don't change the behaviour as I guess the "ESC" button is a feature that, in the dialogs we are talking about, is handled by the OS level. I guess...
What do you say?
As discussed @0x6431346e will open an issue on Electron side
Reported here: https://github.com/electron/electron/issues/14160
Pull request closed