From c11bb23d034b86d318d01c84bc109ab7a5890367 Mon Sep 17 00:00:00 2001 From: Noxx Date: Tue, 14 May 2013 22:07:02 +0200 Subject: [PATCH] ChatBuffer-KeyUp: Suppress browser's default behavior; leave cursor at the end of the line --- client/assets/dev/view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index b563604..8fb70b2 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -1016,7 +1016,8 @@ _kiwi.view.ControlBox = Backbone.View.extend({ this.buffer_pos--; inp.val(this.buffer[this.buffer_pos]); } - break; + //suppress browsers default behavior as it would set the coursor at the beginning) + return false; case (ev.keyCode === 40): // down if (this.buffer_pos < this.buffer.length) { -- 2.25.1