Added "Pin to screen" shortcut (Ctrl + P)

This commit is contained in:
Jaex 2023-01-03 15:09:30 +03:00
parent 26929ab31e
commit ce9d3dff76
3 changed files with 462 additions and 497 deletions

View file

@ -230,6 +230,7 @@ private void InitializeComponent()
this.tsmiTrayColorPicker = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiTrayScreenColorPicker = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiTrayRuler = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiTrayPinToScreen = new System.Windows.Forms.ToolStripMenuItem();
this.tssTrayTools1 = new System.Windows.Forms.ToolStripSeparator();
this.tsmiTrayImageEditor = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiTrayImageEffects = new System.Windows.Forms.ToolStripMenuItem();
@ -283,7 +284,6 @@ private void InitializeComponent()
this.ucTaskThumbnailView = new ShareX.TaskThumbnailView();
this.ttMain = new System.Windows.Forms.ToolTip(this.components);
this.pToolbars = new System.Windows.Forms.Panel();
this.tsmiTrayPinToScreen = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
this.scMain.Panel1.SuspendLayout();
this.scMain.Panel2.SuspendLayout();
@ -1858,6 +1858,13 @@ private void InitializeComponent()
resources.ApplyResources(this.tsmiTrayRuler, "tsmiTrayRuler");
this.tsmiTrayRuler.Click += new System.EventHandler(this.tsmiRuler_Click);
//
// tsmiTrayPinToScreen
//
this.tsmiTrayPinToScreen.Image = global::ShareX.Properties.Resources.pin;
this.tsmiTrayPinToScreen.Name = "tsmiTrayPinToScreen";
resources.ApplyResources(this.tsmiTrayPinToScreen, "tsmiTrayPinToScreen");
this.tsmiTrayPinToScreen.Click += new System.EventHandler(this.tsmiPinToScreen_Click);
//
// tssTrayTools1
//
this.tssTrayTools1.Name = "tssTrayTools1";
@ -2221,13 +2228,6 @@ private void InitializeComponent()
this.pToolbars.Controls.Add(this.tsMain);
this.pToolbars.Name = "pToolbars";
//
// tsmiTrayPinToScreen
//
this.tsmiTrayPinToScreen.Image = global::ShareX.Properties.Resources.pin;
this.tsmiTrayPinToScreen.Name = "tsmiTrayPinToScreen";
resources.ApplyResources(this.tsmiTrayPinToScreen, "tsmiTrayPinToScreen");
this.tsmiTrayPinToScreen.Click += new System.EventHandler(this.tsmiPinToScreen_Click);
//
// MainForm
//
this.AllowDrop = true;

View file

@ -1431,6 +1431,9 @@ private void lvUploads_KeyDown(object sender, KeyEventArgs e)
case Keys.Control | Keys.E:
uim.EditImage();
break;
case Keys.Control | Keys.P:
uim.PinToScreen();
break;
case Keys.Delete:
RemoveSelectedItems();
break;

File diff suppressed because it is too large Load diff