diff --git a/mosh_app/mosh_window.js b/mosh_app/mosh_window.js index 5269f34..5ebfdff 100644 --- a/mosh_app/mosh_window.js +++ b/mosh_app/mosh_window.js @@ -240,6 +240,8 @@ mosh.CommandInstance.prototype.sendKeyboard_ = function(string) { this.moshNaCl_.postMessage({'keyboard': codePoints}); } else if (string == 'x') { window.close(); + } else if (string == 'r') { + document.location.reload(); } }; @@ -288,6 +290,7 @@ mosh.CommandInstance.prototype.onCrash_ = mosh.CommandInstance.prototype.exit_ = function(output) { this.io.print('\r\n' + output + '\r\n'); console.log(output); + this.io.print('Press "r" to reconnect.\r\n'); this.io.print('Press "x" to close the window.\r\n'); this.running_ = false; };