Replies: 2 comments 1 reply
-
If both have identical feature that can be addressed by the |
Beta Was this translation helpful? Give feedback.
1 reply
-
For now no but I can help in found a way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@BDisp, I am studying the code in
ViewKeyboard.cs
and looking atShortcut
etc...It seems to me this logic is duplicative with
Command/KeyBindings
.For example, if
Menu
was modified to createCommand
s and callAddKeyBinding
for each menu item'sshortcut
we could get rid of all this code? The other places whereShortcutHelper
is used are:TextView
- It's only usingShortcutHelper.GetModifiersKey()
and in a weird way:This could be easily addressed.
TopLevel
- Just remove call toShortcutHelper.FindAndOpenByShortcut
fromOnColdKey
(letInvokeKeyBindings
do it's thing)Scenarios (DyanmicMenuBar, VkPacketSimulator, Editor) could all be modified to just use KeyBindings.
Do you have thoughts or suggestions on this?
Beta Was this translation helpful? Give feedback.
All reactions