I have applied Commandbindings on my main WPF form to associate some keyboard shortcuts with menu and toolbar buttons:
CTRL S brings up a Save dialog
CTRL O invokes an Open Dialog
Esc toggles the menu and toolbar on and off.
However, if I select cancel from either of the dialog boxes then all keyboard shortcuts are disabled until I either make a selection from the menu or click on a toolbar button.
Any ideas anyone?