Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Shortcut key does not work in visual studio

$
0
0

Hi All,

I have created a shortcut key to custom command in .vssetings file in isolated shell as - 

<UserShortcuts><RemoveShortcutCommand="Edit.MoveControlRight"Scope="Global">Ctrl+Right Arrow</RemoveShortcut><ShortcutCommand="AddGraph"Scope="Global">Ctrl+Right Arrow</Shortcut></UserShortcuts>


I have created handler (using OleMenuCommand) for "AddGraph"command in package means when we pressed shortcut "Ctrl+Right Arrow" when I want to perform specific action. With the above code, it works fine but in one case it did not work means, when we pressed "Ctrl + Right Arrow" directly on WindowPane (Microsoft.VisualStudio.Shell.WindowPane), it did not work. but if we change the current tab (window pane) by pressing "Alt + Tab" keys for two times then it works.

I thought it was focusing issue, so I gave explicitly focus to window pane but did not work.

Do you have any idea about this ?

Thanks in advance.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>