# HG changeset patch # User koda # Date 1363480564 -3600 # Node ID c98ec68656315090746f7970a57bc0d2ba35f56b # Parent 3eb1891f81ef05a922d99ced62a1b24eae1a0be0 linux keycodes differ from osx's diff -r 3eb1891f81ef -r c98ec6865631 hedgewars/uChat.pas --- 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