()
| 1112 | } |
| 1113 | |
| 1114 | grab_key_focus(): void { |
| 1115 | // TODO: Seems a bit redundant to first focus the dialogs and then change focus to the main window (is that even desired?) |
| 1116 | this.focusDialogs(); |
| 1117 | if (!Me.msWindowManager!.msFocusManager.requestFocus(this)) return; |
| 1118 | if (this.metaWindow) { |
| 1119 | this.metaWindow.activate(global.get_current_time()); |
| 1120 | } else { |
| 1121 | this.placeholder.grab_key_focus(); |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | /** |
| 1126 | * Set focus to the most recent dialog but ONLY if they are of type Meta.WindowType.DIALOG or Meta.WindowType.MODAL_DIALOG. Other dialogs are not necessarily in front of the main window and do not necessarily require the users attention. |
no test coverage detected