private void RegisterHotkeys()
{
this.UnregisterHotkeys();
if (AppEnvironment.SettingValue("UseGlobalHotkey", false))
Native.RegisterHotKey(this.Handle, this.GetType().GetHashCode(), MainWindow.MakeBorderless_HotKeyModifier, MainWindow.MakeBorderless_HotKey);
if (AppEnvironment.SettingValue("UseMouseLockHotkey", false))
Native.RegisterHotKey(this.Handle, this.GetType().GetHashCode(), 0, MainWindow.MouseLock_HotKey);
if (AppEnvironment.SettingValue("UseMouseHideHotkey", false))
Native.RegisterHotKey(this.Handle, this.GetType().GetHashCode(), MainWindow.MouseHide_HotKeyModifier, MainWindow.MouseHide_HotKey);
}