diff options
author | Zoltan Varga <vargaz@gmail.com> | 2014-12-09 17:25:03 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2014-12-09 17:25:03 +0300 |
commit | 91e3a07eceaa311bf2cb853dd7f811ea36c08b27 (patch) | |
tree | c5411ab7ce60da38cd85a17c5517527846c1c09a /mcs/class/Managed.Windows.Forms/System.Windows.Forms | |
parent | 0cff8cb933836ba0d41a23148a36bf1b3622ec50 (diff) | |
parent | 80b32bec272f8ecd5f680ab398dc5ca70e313d4c (diff) |
Merge pull request #1447 from chrisvire/bug-25102
[MWF] Use Ctrl+PageUp/PageDown for Tab Navigation
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs index 4d7ef78c919..23c0534d856 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs @@ -817,6 +817,12 @@ namespace System.Windows.Forms { else SelectedIndex = (SelectedIndex + TabCount - 1) % TabCount; ke.Handled = true; + } else if (ke.KeyCode == Keys.PageUp && (ke.KeyData & Keys.Control) != 0) { + SelectedIndex = (SelectedIndex + TabCount - 1) % TabCount; + ke.Handled = true; + } else if (ke.KeyCode == Keys.PageDown && (ke.KeyData & Keys.Control) != 0) { + SelectedIndex = (SelectedIndex + 1) % TabCount; + ke.Handled = true; } else if (ke.KeyCode == Keys.Home) { SelectedIndex = 0; ke.Handled = true; |