Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Remove defaultId from remove dialog #176

Closed

Conversation

kernelwhisperer
Copy link
Contributor

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: electron/electron#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 defaultId pressing escape would work on mac as well, but that means pressing enter no longer deletes the file, but cancels the operation instead.

Thoughts?

@koalalorenzo
Copy link
Member

koalalorenzo commented Aug 16, 2018

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?

@koalalorenzo
Copy link
Member

As discussed @0x6431346e will open an issue on Electron side

@kernelwhisperer
Copy link
Contributor Author

Reported here: electron/electron#14160

@kernelwhisperer kernelwhisperer deleted the bugfix/escape-should-close-remove-dialog branch August 17, 2018 07:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants