From 1def4a2c6fa9798ccac8be38b183769e5aaa4e73 Mon Sep 17 00:00:00 2001 From: Scott Wadden Date: Mon, 11 Dec 2023 08:53:47 -0400 Subject: [PATCH] Linux left alt support --- src/game.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game.nim b/src/game.nim index d879b407..1289398d 100644 --- a/src/game.nim +++ b/src/game.nim @@ -343,8 +343,10 @@ Trying to connect to {state.config.connect_address}. method unhandled_input*(event: InputEvent) = if event of InputEventKey: let event = InputEventKey(event) + # Left alt support. raw_code is an enu specific addition if (host_os == "macosx" and event.raw_code == 58) or - (host_os == "windows" and event.raw_code == 312): + (host_os == "windows" and event.raw_code == 312) or + (host_os == "linux" and event.raw_code == 65513): if event.pressed: state.push_flag CommandMode