Made the input focus grabbing even more aggressive

This fixes keyboard focus not returning when closing dialogs in Melda
plugins. I'll have to do some more testing to see if this does not
introduce any unwanted side effects.
This commit is contained in:
Robbert van der Helm
2020-10-08 15:51:20 +02:00
parent e7cbd9e21e
commit e680f2eddd
2 changed files with 23 additions and 8 deletions
+2 -1
View File
@@ -146,7 +146,8 @@ class Editor {
/**
* Steal keyboard focus. This is done whenever the user clicks on the window
* since we don't have a way to detect whether the client window is calling
* `SetFocus()`.
* `SetFocus()`. See the comment inside of this function for more details on
* when this is used.
*/
void grab_input_focus() const;