Skip to content

Commit 63d12b7

Browse files
docs(editor): kbd shortcuts for mac
1 parent b4af5ef commit 63d12b7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#cmd-on-mac
2+
You can have the editor use the `Cmd` key on a Mac, instead of `Ctrl`, by providing a keyboard shortcut to the editor with a slash. For example: `<tool name="Bold" shortcut="Ctrl+B / Cmd+B" />`. When RadEditor detects it is running on a Mac, it will switch from expecting the `Ctrl` key to expecting the `Cmd` key.
3+
#end

controls/editor/accessibility-and-internationalization/keyboard-support/overview.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ RadEditor1.Tools.Add(main);
7777
EditorTool cut = new EditorTool();
7878
cut.Name = "Cut";
7979
cut.ShortCut = "CTRL+X";
80-
main.Tools.Add(cut); ````
80+
main.Tools.Add(cut);
81+
````
8182
````VB
8283
Imports Telerik.Web.UI
8384
...
@@ -98,4 +99,6 @@ or using the **ShortCut** attribute of the `<tool>` item in the ToolsFile.xml fi
9899
<tool name="Paste" shortcut="CTRL+V" />
99100
````
100101

101-
The shortcut mechanism will override the default shortcut of the browser, like **Ctrl+N, Ctrl+F, Ctrl+P**, so you can use those combinations for custom purposes.
102+
>tip The shortcut mechanism will override the default shortcut of the browser, like **Ctrl+N, Ctrl+F, Ctrl+P**, so you can use those combinations for custom purposes.
103+
104+
>tip @[template](/_templates/editor/keyboard-support.md#cmd-on-mac)

controls/editor/functionality/toolbars/using-toolsfile.xml.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The `headertools` element has no attributes. You can see how it can be configure
128128
|**imageurl**|Sets the URL to the image of the small or medium button in [RibbonBar ToolbarMode]({%slug editor/functionality/toolbars/using-ribbonbar%}) in Classic RenderMode.|
129129
|**imageurllarge**|Sets the URL to the image of the large button in [RibbonBar ToolbarMode]({%slug editor/functionality/toolbars/using-ribbonbar%}) in Classic RenderMode.|
130130
| **position** *|**Applicable only when tool is added to the HeaderTools collection**. Defines whether the tool to be added to the left or the right tool-group _([Phone Layout Toolbar Configuration]({%slug editor/mobile-support/phone-layout/toolbar-configuration%}))_.|
131-
|**shortcut** |The key combination for the specific tool: `<tool name="LinkManager" />` or `<tool name="TemplateManager" shortcut="Ctrl+Shift+Alt+T" />`|
131+
|**shortcut** |The key combination for the specific tool: `<tool name="LinkManager" shortcut="Ctrl+L" />` or `<tool name="TemplateManager" shortcut="Ctrl+Shift+Alt+T" />`. @[template](/_templates/editor/keyboard-support.md#cmd-on-mac)|
132132
|**showtext** |Specifies whether to display the button name next to its icon `<tool name="ImageManager" shortcut="Ctrl+G" showtext="true" />`|
133133
|**showicon** |Specifies whether to display the tools icon or not. Default value is true. `<tool name="ImageManager" shortcut="Ctrl+G" showicon="false" showtext="true" />`|
134134
|**separator**|Indicates whether a separator should appear at the current position. Possible values are boolean true or false, but if you do not want a separator you simply should omit this property. When set to true it does not require the Name attribute to be set as well.|
@@ -157,6 +157,8 @@ The `headertools` element has no attributes. You can see how it can be configure
157157
</tools>
158158
````
159159

160+
>tip @[template](/_templates/editor/keyboard-support.md#cmd-on-mac)
161+
160162
<a name="example-3"/>
161163
>caption Example 3: Adding header tools.
162164

0 commit comments

Comments
 (0)