From b4b24aacca81d500c9a667ea015e5e16dc9e83f9 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 30 Dec 2019 11:11:41 -0800 Subject: [PATCH] suppress warning --- window/src/os/macos/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index c3e4a303f..7326d0099 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -1006,7 +1006,7 @@ impl WindowView { } fn key_common(this: &mut Object, nsevent: id, key_is_down: bool) { - let is_a_repeat = unsafe { nsevent.isARepeat() == YES }; + // let is_a_repeat = unsafe { nsevent.isARepeat() == YES }; let chars = unsafe { nsstring_to_str(nsevent.characters()) }; let unmod = unsafe { nsstring_to_str(nsevent.charactersIgnoringModifiers()) }; let modifiers = unsafe { key_modifiers(nsevent.modifierFlags()) };