This is a migrated thread and some comments may be shown as answers.

i want keyboard shortcut not used

3 Answers 55 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
sungsu
Top achievements
Rank 1
sungsu asked on 09 Jul 2014, 12:36 AM
I do not want to use a keyboard shortcut. How can I set the non-use would be appreciated.

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 10 Jul 2014, 04:23 PM
Hi Sungsu,

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:
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" onkeydown="perventEnterKey(event);">
...
</telerik:RadFileExplorer">

JavaScript:
function perventEnterKey(event) {
    if (event.keyCode == 13) {
        event.preventDefault();
    }
}

Thanks,
Princy.
 
Tags
FileExplorer
Asked by
sungsu
Top achievements
Rank 1
Answers by
Vessy
Telerik team
sungsu
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or