i want keyboard shortcut not used

4 posts, 0 answers
  1. sungsu
    sungsu avatar
    9 posts
    Member since:
    May 2014

    Posted 08 Jul 2014 Link to this post

    I do not want to use a keyboard shortcut. How can I set the non-use would be appreciated.
  2. Vessy
    Admin
    Vessy avatar
    1388 posts

    Posted 10 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. sungsu
    sungsu avatar
    9 posts
    Member since:
    May 2014

    Posted 10 Jul 2014 in reply to Vessy Link to this post

    thanks, ESC key is prevented. but Upload window does not prevent the enter key event.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Jul 2014 in reply to sungsu Link to this post

    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.
     
Back to Top