How to block keyboard shortcuts

I'm using the sfrichtextboxadv via elementhost in winform. How do I override or block the existing keyboard shortcuts on the control? Shortcuts like Ctrl+O, Ctrl+S, etc


6 Replies

KG Kalaivannan Ganesan Syncfusion Team August 3, 2021 06:26 AM UTC

Hi Olayinka,

Thanks for contacting Syncfusion support.

Currently SfRichTextBoxAdv control doesn’t have any direct API to disable shortcut keys. But you can achieve this by remove shortcut bindings from control’s input bindings collection. We have prepared sample to demonstrate the same, which can be downloaded from the following location.

https://www.syncfusion.com/downloads/support/forum/167788/ze/SfRichTextBoxAdv_Winform-1182739900

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



OL Olayinka August 3, 2021 01:05 PM UTC

Great 👍

However, I still have these issues.

1. How do I use my own code for the Ctrl O and other keyboard shortcuts.

2.  When I tried to open a document (attached), it gives this error ​Width and Height must be non-negative.


Attachment: Documennet_d82bf43c.zip


KG Kalaivannan Ganesan Syncfusion Team August 4, 2021 09:12 AM UTC

Hi Olayinka,

Thanks for the update.

1. Use your code for the existing keyboard shortcuts:
We have created a sample to implement your code for the existing keyboard shortcuts. For Example,

 i) To perform paste operation on performing ctrl + o  shortcut
 ii) To Perform Bold for selection on performing ctrl + s shortcut, Which can be downloaded from the below location

https://www.syncfusion.com/downloads/support/forum/167788/ze/SfRichTextBoxAdv_Winform292698207

2. We can reproduce the following reported issues from the shared document

i). Exception is thrown on loading the document with the shape of wrap square wrap format.
ii). Footer content is preserved improperly.
iii) Content inside the shape is not clipped and will validate and update you with further details on 6th August 2021.

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



KG Kalaivannan Ganesan Syncfusion Team August 6, 2021 12:51 PM UTC

Hi Olayinka,

Thanks for the patience

We have confirmed the below-listed issues as a bug and logged a bug report. We will fix these issues and provide you the private patch on or before 27th August 2021.

1.
Handle clipping for a table in the text box shape

2.
Exception thrown on importing document contains shape with square wrapping style

3.
Table preserved improperly in document footer while importing

Feedback links
https://www.syncfusion.com/feedback/27693/handle-clipping-for-table-in-text-box-shape

https://www.syncfusion.com/feedback/27698/exception-thrown-on-importing-document-contains-shape-with-square-wrapping-style

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan 



KG Kalaivannan Ganesan Syncfusion Team August 27, 2021 01:27 PM UTC

Hi Olayinka,

Thank you for your patience,

We have fixed the following issues with

1.Handle clipping for a table in the text box shape

2.
Exception thrown on importing document contains shape with square wrapping style

3.
Table preserved improperly in document footer while importing and The patch can be downloaded from the following location.

Recommended approach -exe will perform automatic configuration
Please find the patch setup from below location:
https://syncfusion.com/Installs/support/patch/19.2.0.44/1350352/F167788/SyncfusionPatch_19.2.0.44_1350352_8272021084609377_F167788.exe

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your
build environment

Please find the patch assemblies alone from below location:
https://syncfusion.com/Installs/support/patch/19.2.0.44/1350352/F167788/SyncfusionPatch_19.2.0.44_1350352_8272021084609377_F167788.zip

NuGet packages
https://syncfusion.com/Installs/support/patch/19.2.0.44/1350352/F167788/SyncfusionNuget_19.2.0.44_1350352_8272021084609377_F167788.zip

Assembly Version: 19.2.0.44
Installation Directions:
This patch should replace the files “Syncfusion.SfRichTextBoxAdv.WPF” under the following folder.

$system drive:\Program Files (x86) \Syncfusion\Essential Studio\WPF\$Version # \precompiledassemblies\4.6

Eg : $system drive:\Program Files (x86)\Syncfusion\Essential Studio\WPF\
19.2.0.44\precompiledassemblies\4.6
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in the precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location, or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.

Note
You can change how you receive bug fixes by navigating to the following link and updating your preferences.

https://www.syncfusion.com/support/directtrac/patches

Disclaimer:
Please note that we have created this patch for version 19.2.0.44 specifically to resolve the issues  reported in this Forum  #167788
And we have a plan to include this fix in our upcoming Volume 3 main release which will we estimated to deliver in the end of September 2021.

If you have received other patches for the same version for other products, please apply all patches in the order received.


Feedback links
https://www.syncfusion.com/feedback/27693/handle-clipping-for-table-in-text-box-shape

https://www.syncfusion.com/feedback/27698/exception-thrown-on-importing-document-contains-shape-with-square-wrapping-style

Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 



OL Olayinka August 30, 2021 06:35 PM UTC

Many thanks for the update


Loader.
Up arrow icon