andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Hotkeys when closing a modified file #168

Closed bjones1 closed 10 years ago

bjones1 commented 10 years ago

When closing a modified file, the dialog that pops up doesn't have any hotkeys for the three buttons (Save checked, close without saving, cancel close) visible. When I press the Alt key, the hotkeys appear. IMHO, they should be visible before an Alt keypress.

andreikop commented 10 years ago

I have hotkeys always, visible. Try to google if it is a setting of your desktop environment

bjones1 commented 10 years ago

Looks like I was wrong re: hotkeys being always visible. However, I've implemented an eventfilter so that pressing c, w, s causes the appropriate action to take place. This mirrors the usage of a QMessageBox: if it has yes, no, cancel buttons, then y, n, c clicks the respective button.

I'll put a pull request together soon.