What is the shortcut for confirming dialogs on Mac?

I have a MacBook Pro 2015 with macOS Sierra 10.12.4 installed. I have a question about confirming dialogs.

I use WebStorm from JetBrains to write code. After some actions I can open Commit dialog. By the way the commit dialog opens with Command + K shortcut. Here is this dialog:

I write some text and after that I need to press the Commit button (submit form).

The problem: I can't do this with a shortcut. I tried Command + enter. I assumed this would work, because submitting this dialog (and any other dialog like this, not only in this programm) is done by control + enter, so I assumed on Mac it must be Command + enter.

It is not only with this dialog, it also doesn't work in other applications either.

What is the hotkey to confirm dialogs on Mac?


In general in macOS, you can select the default dialog button (highlighted blue) with Enter.

                                                      

Enter selects the button on the right.

If you have All Controls enabled in System Preferences → Keyboard → Shortcuts, then a blue outline can be moved around controls using ⇥ and ⇧⇥, with Space used to confirm. In the screenshot, Space selects the button on the left.


However, specifically for this question you are referring to IntelliJ. They have a history of not following Apple HIG and there does not appear to be a keyboard shortcut to press the Commit button on that window.

Click this button to commit the selected files, or hover your mouse over this button to […]

https://www.jetbrains.com/help/idea/2017.1/commit-changes-dialog.html