From 601e7d7f10d98d48a6b7ce2b33f78ab46765fd72 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sun, 13 Mar 2022 17:38:20 -0400 Subject: [PATCH] H key -> toggle side panel --- src/egui_app.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/egui_app.rs b/src/egui_app.rs index 205bd95..b62df77 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -3,6 +3,7 @@ use crate::misc::{debug_log, log_helper, parse_value}; use crate::parsing::{process_func_str, test_func}; use const_format::formatc; +use eframe::egui::Key; use eframe::{egui, epi}; use egui::plot::Plot; use egui::{ @@ -512,6 +513,10 @@ impl epi::App for MathApp { false => Visuals::light(), }); + self.settings + .show_side_panel + .bitxor_assign(ctx.input().key_down(Key::H)); + ctx.set_fonts(FONT_DEFINITIONS.clone()); // Initialize fonts // Creates Top bar that contains some general options