Skip to content

Commit eb7a4dd

Browse files
committed
update example
1 parent 924a364 commit eb7a4dd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

โ€Žexamples/kbd_ev_print.rsโ€Ž

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ pub fn mod_state_side_agnostic_s(state: &ModifiersState) -> String {
7474
s.push(' ');
7575

7676
if state.contains(ModifiersState::FN) {
77-
s.push('๐Ÿ„ต')
77+
s.push('ฦ’')
7878
} else {
7979
s.push(' ')
8080
};
8181
s.push(' ');
8282
if state.contains(ModifiersState::FN_LOCK) {
83-
s.push_str("๐Ÿ„ต๐Ÿ”’")
83+
s.push_str("ฦ’๐Ÿ”’")
8484
} else {
8585
s.push_str(" ")
8686
};
@@ -309,10 +309,11 @@ fn main() -> Result<(), Box<dyn Error>> {
309309

310310
println!(
311311
"ฮ” is ModifiersChanged event, showing (line #1) side-agnostic modifier state as well as \
312-
(#2) side-aware one."
312+
(#2) side-aware one.\n โ‡ง Shift โŽˆ Control โ—† Meta โއ Alt โއGr AltGraph โ‡ช CapsLock โ‡ญ \
313+
NumLock โ‡ณ๐Ÿ”’ ScrollLock\n ฦ’ Fn ฦ’๐Ÿ”’ FnLock ใ‚ซใƒŠ๐Ÿ”’ KanaLock โ€น๐Ÿ‘ Loya ๐Ÿ‘โ€บ Roya ๐Ÿ”ฃ \
314+
Symbol ๐Ÿ”ฃ๐Ÿ”’ SymbolLock\n๐Ÿ–ฎ is KeyboardInput: โš— synthetic, โ†“โ†‘ pressed/unknown, ๐Ÿ” \
315+
repeat\n phys logic txt +mod โˆ’mod location"
313316
);
314-
println!("๐Ÿ–ฎ is KeyboardInput: โš—=synthetic, โ†“โ†‘=pressed/released ๐Ÿ”=repeat");
315-
println!(" phys logic txt +mod โˆ’mod location");
316317

317318
// For alternative loop run options see `pump_events` and `run_on_demand` examples.
318319
event_loop.run_app(App::default())?;

0 commit comments

Comments
ย (0)