public void handle_keyboard_shortcut_quick(object sender, KeyPressedEventArgs e) { ProtectedString str; PwGenerator.Generate(out str, Program.Config.PasswordGenerator.AutoGeneratedPasswordsProfile, null, Program.PwGeneratorPool); Clipboard.SetText(str.ReadString()); quick_anim = 3; }
public void handle_keyboard_shortcut(object sender, KeyPressedEventArgs e) { pmPasswords_Opening(null, null); pmPasswords.Show(lbClock, new Point(0, Height)); TopMost = true; SetForegroundWindow(this, true); pmPasswords.Focus(); if (FOptions.showSearch && ! Host.MainWindow.IsFileLocked(null)) toolStripTextSearch.Focus(); }