()
| 230 | } |
| 231 | |
| 232 | pushModal() { |
| 233 | if (this._hasModal) |
| 234 | return true; |
| 235 | |
| 236 | const grab = Main.pushModal(this, {actionMode: this._actionMode}); |
| 237 | this._grab = grab; |
| 238 | Main.layoutManager.emit('system-modal-opened'); |
| 239 | |
| 240 | this._hasModal = true; |
| 241 | if (this._savedKeyFocus) { |
| 242 | this._savedKeyFocus.grab_key_focus(); |
| 243 | this._savedKeyFocus = null; |
| 244 | } else { |
| 245 | const focus = this._initialKeyFocus || this.dialogLayout.initialKeyFocus; |
| 246 | focus.grab_key_focus(); |
| 247 | } |
| 248 | |
| 249 | if (!this._shellReactive) |
| 250 | this.backgroundStack.set_child_below_sibling(this._eventBlocker, null); |
| 251 | return true; |
| 252 | } |
| 253 | |
| 254 | // This method is like close, but fades the dialog out much slower, |
| 255 | // and leaves the lightbox in place. Once in the faded out state, |
no outgoing calls
no test coverage detected