Page 1 of 1

Disabling Shortcut Keys

Posted: Wed Oct 10, 2012 8:13 pm
by Superwaxer
Hi guys,

I need to disable all the shortcut keys for the report control (Ctrl+S, Ctrl+P, Ctrl+F, F2 etc.) in our application as these are reserved for different functions. I need to find a way to either disable or intercept them. I have tried the following in code:

C#:

Code: Select all

StiOptions.Viewer.DisableShortcutInViewer = true;
XAML:

Code: Select all

<sti:StiWpfViewerControl Name="ReportPreview" Zoom="1.0"
                         IsReportSaveEnabled="False"
                         IsReportPrintEnabled="False"
                         IsToolFindEnabled="False"
                         IsFullScreenEnabled="False"
                         IsHandModeActivated="False"/>
None of these seem to work. What am I missing?

Thanks

Re: Disabling Shortcut Keys

Posted: Thu Oct 11, 2012 12:10 pm
by HighAley
Hello.

We have added a new method named StiOptions.Viewer.HotKeys.DisableAllHotkeys(). It disables all hotkeys in Viewer.
If you need to disable any exact hotkey, please, look at the StiOptions.Viewer.HotKeys class.
The patch will be available tomorrow.

Thank you.

Re: Disabling Shortcut Keys

Posted: Thu Oct 11, 2012 8:58 pm
by Superwaxer
Thank you. Please let me know when this patch will be available.

Re: Disabling Shortcut Keys

Posted: Fri Oct 12, 2012 6:24 am
by Alex K.
Hello,

The prerelease build will be available during the day.

Thank you.