(event)
| 188 | |
| 189 | |
| 190 | def reset_search_buffer(event): |
| 191 | if event.current_buffer.document.text: |
| 192 | event.current_buffer.reset() |
| 193 | else: |
| 194 | event.app.layout.focus(DEFAULT_BUFFER) |
| 195 | |
| 196 | def suspend_to_bg(event): |
| 197 | event.app.suspend_to_background() |