summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-17 14:18:39 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-17 14:18:39 +0200
commitd9a9a470758edd596676239271fefb820785e1b3 (patch)
treee399c6e0efa8784c57ceef3296451a6c270358a0 /webclient/room/room.html
parentWEB-35: joins/parts should trigger desktop notifications (diff)
downloadsynapse-d9a9a470758edd596676239271fefb820785e1b3.tar.xz
SYWEB-7: Up & down keys let user step through the history as per readline or xchat
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 886c2afe64..33ad06ea80 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -156,7 +156,8 @@
                     <td width="*">
                         <textarea id="mainInput" rows="1" ng-model="textInput" ng-enter="send()"
                                   ng-disabled="state.permission_denied"
-                                  ng-focus="true"  autocomplete="off" tab-complete/>
+                                  ng-keydown="(38 === $event.which) ? history.goUp($event) : ((40 === $event.which) ? history.goDown($event) : 0)"
+                                  ng-focus="true" autocomplete="off" tab-complete/>
                     </td>
                     <td id="buttonsCell">
                         <button ng-click="send()" ng-disabled="state.permission_denied">Send</button>