ReaLTaiizor
ReaLTaiizor copied to clipboard
Buttons support shortcut keys
How to make buttons support shortcut keys?
We grateful you making your first issue notification. You can be sure that a return will be made as soon as possible.
Sorry, I may not have made it clear. I mean to add shortcut keys to the button, just like an ordinary button, like the picture below.
Just like the system button below, the underline will be displayed under the letter "t", and press Alt + T to respond to the event.
I understand the problem now. It works on some components. But the first character is not underlined.
I will not do anything to fix this problem. Because there are too many components. I can't spend that much time on this project.
My suggestion is to create underline text from the website below and name the button. You then create shortcuts using MethodA or MethodB.
https://yaytext.com/underline
In protected override void onpaint (painteventargs E), this can achieve the same effect as the system button, but it does not respond after pressing the shortcut key.
StringFormat sf = new(StringFormatFlags.NoWrap | StringFormatFlags.NoClip); if (ShowKeyboardCues) sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.Show; else sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.Hide; sf.Alignment = StringAlignment.Center; sf.LineAlignment = StringAlignment.Center;
MaterialButton now supports it.