Disabling Shortcut Keys

Stimulsoft Reports.WPF discussion
Post Reply
Superwaxer
Posts: 6
Joined: Thu Jul 12, 2012 9:15 pm

Disabling Shortcut Keys

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Disabling Shortcut Keys

Post 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.
Superwaxer
Posts: 6
Joined: Thu Jul 12, 2012 9:15 pm

Re: Disabling Shortcut Keys

Post by Superwaxer »

Thank you. Please let me know when this patch will be available.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Disabling Shortcut Keys

Post by Alex K. »

Hello,

The prerelease build will be available during the day.

Thank you.
Post Reply