Allow aborting of running search requests
| | |
| | | if (obj && obj.blur) |
| | | obj.blur(); |
| | | |
| | | if (this.busy) |
| | | // do nothing if interface is locked by other command (with exception for searching reset) |
| | | if (this.busy && !(command == 'reset-search' && this.last_command == 'search')) |
| | | return false; |
| | | |
| | | // let the browser handle this click (shift/ctrl usually opens the link in a new window/tab) |
| | |
| | | this.remove_compose_data(this.env.compose_id); |
| | | } |
| | | |
| | | this.last_command = command; |
| | | |
| | | // process external commands |
| | | if (typeof this.command_handlers[command] === 'function') { |
| | | ret = this.command_handlers[command](props, obj); |