Declined
Last Updated: 17 May 2021 12:42 by ADMIN
Robby
Created on: 13 Apr 2021 12:17
Category: SyntaxEditor
Type: Feature Request
0
Use ctrl+H to activate replace form

Default keystroke in other editors to activate text replacement is: ctrl+H

Would be nive to enable this in the syntax editor.

 

1 comment
ADMIN
Martin Ivanov
Posted on: 20 Apr 2021 11:01

Hello Robby,

To have both Ctrl+F and Ctrl+H is meaningful in editors where you have different visuals for the Find and for the Replace functions. For example, Notepad++ provides two tabs - one for Find (activated with Ctrl+F) and another with Replace (Ctrl+H). In the context of SyntaxEditor this is not appropriate because both Find and Replace features are hosted in a single visual element (activated with Ctrl+F), so introducing an additional keystroke will do the same as the currently supported Ctrl+F action.

If you want to show the Find and Replace dialog, you can execute the OpenFindDialogCommand when Ctrl+H is pressed. One way to do so, is to use a KeyBinding. Can you try this and let me know if it helps?

<telerik:RadSyntaxEditor x:Name="editor">
	<telerik:RadSyntaxEditor.InputBindings>
		<KeyBinding Command="{Binding ElementName=editor, Path=Commands.OpenFindDialogCommand}" Key="H" Modifiers="Ctrl" />
	</telerik:RadSyntaxEditor.InputBindings>
</telerik:RadSyntaxEditor>

Regards,
Martin Ivanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.