#egui #hotkey #key

egui_hotkey

Simple hotkey library for egui

3 unstable releases

0.2.0 Aug 21, 2022
0.1.1 May 23, 2022
0.1.0 May 23, 2022

#965 in GUI

Download history 23/week @ 2024-12-04 45/week @ 2024-12-11 13/week @ 2024-12-18 1/week @ 2024-12-25 16/week @ 2025-01-01 8/week @ 2025-01-08 18/week @ 2025-01-15 8/week @ 2025-01-22 13/week @ 2025-01-29 23/week @ 2025-02-05 33/week @ 2025-02-12 4/week @ 2025-02-19 33/week @ 2025-02-26 8/week @ 2025-03-05 20/week @ 2025-03-12 15/week @ 2025-03-19

77 downloads per month
Used in phoenix_gui

MIT license

18KB
370 lines

egui_hotkey

Simple hotkey library for egui

Installation

[dependencies]
egui_hotkey = "0.2.0"

Example

use egui::Key;

let mut key = Key::N;
if Hotkey::new(&mut key).ui(ui).changed() {
    println!("Rebinded!");
}

Features

serde - Implementes serde::Serialize, serde::Deserialize for BindVariant & Binding.

Dependencies

~4–10MB
~79K SLoC