private void ControllerOnShortcutChanged(bool fromView, PluginShortcut shortcut, Keys key) { var str = ShortkeyUtils.KeyToString(key); switch (shortcut) { case PluginShortcut.HideOverlay: buttonShortcutHide.Text = str; break; } }
private void ControllerOnShortcutChanged(bool fromView, PluginShortcut shortcut, Keys key) { if (!fromView) { return; } var ks = ShortkeyUtils.KeyToString(key); switch (shortcut) { case PluginShortcut.HideOverlay: ShortcutHide = ks; break; } }