diff --git a/src/managed/OpenLiveWriter.PostEditor/OpenPost/OpenPostForm.cs b/src/managed/OpenLiveWriter.PostEditor/OpenPost/OpenPostForm.cs index bb89e86b..d4cdc3eb 100644 --- a/src/managed/OpenLiveWriter.PostEditor/OpenPost/OpenPostForm.cs +++ b/src/managed/OpenLiveWriter.PostEditor/OpenPost/OpenPostForm.cs @@ -73,6 +73,9 @@ namespace OpenLiveWriter.PostEditor.OpenPost textBoxFilter.KeyDown += new KeyEventHandler(textBoxFilter_KeyDown); textBoxFilter.EnabledChanged += new EventHandler(textBoxFilter_EnabledChanged); + KeyPreview = true; + KeyDown += new KeyEventHandler(openPostForm_KeyDown); + filterPictureBox.Image = ResourceHelper.LoadAssemblyResourceBitmap("PostPropertyEditing.CategoryControl.Images.Search.png"); filterPictureBox.BackColor = SystemColors.Window; filterPictureBox.SizeMode = PictureBoxSizeMode.StretchImage; @@ -81,6 +84,16 @@ namespace OpenLiveWriter.PostEditor.OpenPost comboBoxPosts.AccessibleName = Res.Get(StringId.PostCountAccessible); } + void openPostForm_KeyDown(object sender, KeyEventArgs e) + { + if ((Control.ModifierKeys & Keys.Alt) == Keys.Alt && e.KeyCode == Keys.S) + { + ActiveControl = comboBoxPosts; + comboBoxPosts.DroppedDown = true; + e.SuppressKeyPress = true; + } + } + void textBoxFilter_EnabledChanged(object sender, EventArgs e) { filterPictureBox.BackColor = textBoxFilter.Enabled ? SystemColors.Window : SystemColors.Control;