hedgewars/uChat.pas
changeset 8741 c98ec6865631
parent 8740 3eb1891f81ef
child 8742 b7b8bd398c1b
--- a/hedgewars/uChat.pas	Sun Mar 17 01:34:24 2013 +0100
+++ b/hedgewars/uChat.pas	Sun Mar 17 01:36:04 2013 +0100
@@ -329,10 +329,12 @@
             CleanupInput;
             end;
         {arrow keys (up, down)}
-        63232, 63233: begin
+        111, 116,     //linux
+        63232, 63233: //osx
+            begin
 
-            if (Key = 63232) and (history < localLastStr) then inc(history);
-            if (Key = 63233) and (history > 0) then dec(history);
+            if ((Key = 63232) or (Key = 111)) and (history < localLastStr) then inc(history);
+            if ((Key = 63233) or (Key = 116)) and (history > 0) then dec(history);
 
             index:= localLastStr - history + 1;
             if (index > localLastStr) then