private void resetHotKeys() { m_hotKeys.UnregisterAll(); String failures = ""; foreach (Config.Arrangement arrangement in m_config.Arrangements) { if (!m_hotKeys.Register(arrangement.Shortcut.Key, arrangement.Shortcut.KeyModifier, hotkeyCallback)) { if (failures.Length > 0) { failures += ", "; } failures += arrangement.Name; } } if (failures.Length > 0) { m_notifier.Notify("Failed to bind keys", "Couldn't bind keys for arrangement(s): " + failures + ".\nSelected hotkeys likely already registered to a different application"); } }