Skip to content

Commit

Permalink
Set HotKeys in Alternate Auto-Type's options
Browse files Browse the repository at this point in the history
You can now define all hotkeys related to Auto-Type in Alternate Auto-Type's options:
* Global Auto-Type
* Global Auto-Type - password only
* Alternate Auto-Type hotkey

It's no longer required to switch to the Integration tab to set these hotkeys
  • Loading branch information
Rookiestyle committed Sep 19, 2021
1 parent 36a7964 commit 12134ca
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 261 deletions.
6 changes: 3 additions & 3 deletions src/AlternateAutoType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public override bool Initialize(IPluginHost host)
GlobalWindowManager.WindowRemoved += OnWindowRemoved;

Tools.OptionsFormShown += OptionsFormShown;
Tools.OptionsFormClosed += ConfigWrite;
Tools.OptionsFormClosed += OptionsForm_Closed;

if (Config.PWEnter) WndProcHook.AddHandler(m_host.MainWindow, WndProcHandler);

Expand Down Expand Up @@ -98,7 +98,7 @@ public override void Terminate()
m_host.MainWindow.ToolsMenu.DropDownItems.Remove(m_menuItem);

Tools.OptionsFormShown -= OptionsFormShown;
Tools.OptionsFormClosed -= ConfigWrite;
Tools.OptionsFormClosed -= OptionsForm_Closed;
GlobalWindowManager.WindowAdded -= OnWindowAdded;
GlobalWindowManager.WindowRemoved -= OnWindowRemoved;

Expand Down Expand Up @@ -597,7 +597,7 @@ private void OptionsFormShown(object sender, Tools.OptionsFormsEventArgs e)
Tools.AddPluginToOptionsForm(this, options);
}

private void ConfigWrite(object sender, Tools.OptionsFormsEventArgs e)
private void OptionsForm_Closed(object sender, Tools.OptionsFormsEventArgs e)
{
if (e.form.DialogResult != DialogResult.OK) return;
bool shown;
Expand Down
Loading

0 comments on commit 12134ca

Please sign in to comment.