Linux left alt support

This commit is contained in:
Scott Wadden 2023-12-11 08:53:47 -04:00
parent 481c40d079
commit 1def4a2c6f
1 changed files with 3 additions and 1 deletions

View File

@ -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