diff --git a/pk3DS/Subforms/MapPermView.Designer.cs b/pk3DS/Subforms/MapPermView.Designer.cs index 253c595..3cc35fc 100644 --- a/pk3DS/Subforms/MapPermView.Designer.cs +++ b/pk3DS/Subforms/MapPermView.Designer.cs @@ -75,6 +75,7 @@ private void InitializeComponent() this.PB_Map.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.PB_Map.TabIndex = 2; this.PB_Map.TabStop = false; + this.PB_Map.MouseEnter += new System.EventHandler(this.focusPanel); this.PB_Map.MouseMove += new System.Windows.Forms.MouseEventHandler(this.hoverMap); // // CHK_AutoDraw diff --git a/pk3DS/Subforms/MapPermView.cs b/pk3DS/Subforms/MapPermView.cs index efa7b16..58fbb39 100644 --- a/pk3DS/Subforms/MapPermView.cs +++ b/pk3DS/Subforms/MapPermView.cs @@ -152,5 +152,10 @@ private void MapPermView_FormClosing(object sender, FormClosingEventArgs e) Hide(); e.Cancel = true; } + + private void focusPanel(object sender, EventArgs e) + { + PAN_MAP.Focus(); + } } }