3 Answers, 1 is accepted
0
Hi Sungsu,
The easiest way to disable the keybord shortcuts of FileExplorer is to reconfigure them, passing some strange combination of buttons, for example:
Hope this helps.
Regards,
Vessy
Telerik
The easiest way to disable the keybord shortcuts of FileExplorer is to reconfigure them, passing some strange combination of buttons, for example:
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1"> <Configuration ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" /> <KeyboardShortcuts Back="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts ContextMenu="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts Delete="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusAddressBar="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusFileExplorer="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusGrid="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusGridPagingSlider="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusGridPagingSlider="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusToolBar="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts FocusTreeView="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts Forward="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts NewFolder="CTRL+SHIFT+Q+P+8" /> <KeyboardShortcuts Open="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts PopupWindowClose="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts Refresh="CTRL+SHIFT+Q+P+1" /> <KeyboardShortcuts UploadFile="CTRL+SHIFT+Q+P+1" /></telerik:RadFileExplorer>Hope this helps.
Regards,
Vessy
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
sungsu
Top achievements
Rank 1
answered on 11 Jul 2014, 12:04 AM
thanks, ESC key is prevented. but Upload window does not prevent the enter key event.
0
Princy
Top achievements
Rank 2
answered on 11 Jul 2014, 06:31 AM
Hi sungsu,
Try to attach the onkeydown event and when Enter key is pressed cancel the event. Please take a look into the sample code snippet.
ASPX:
JavaScript:
Thanks,
Princy.
Try to attach the onkeydown event and when Enter key is pressed cancel the event. Please take a look into the sample code snippet.
ASPX:
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" onkeydown="perventEnterKey(event);">...</telerik:RadFileExplorer">JavaScript:
function perventEnterKey(event) { if (event.keyCode == 13) { event.preventDefault(); }}Thanks,
Princy.
