From d474621f5068c1641e17dc7b35a2d336d4cd0383 Mon Sep 17 00:00:00 2001 From: happy-coder Date: Wed, 26 Apr 2023 14:37:55 +0200 Subject: [PATCH] Update header.tis Adding display switching hotkey '^' (just goes to next display) --- src/ui/header.tis | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ui/header.tis b/src/ui/header.tis index af4f1e349..0aa3c1055 100644 --- a/src/ui/header.tis +++ b/src/ui/header.tis @@ -306,6 +306,16 @@ class Header: Reactor.Component { if (pi.current_display == me.index) return; handler.switch_display(me.index); } + + event keyup (evt) { + if((pi.displays || []).length > 0 && evt.keyCode == 220) + { + if (pi.displays.length > pi.current_display) + handler.switch_display(pi.current_display + 1); + else + handler.switch_display(1); + } + } event click $(#transfer-file) { handler.transfer_file();