javascript - Strange behavior of jquery.hotkeys -


although subject of keyboard shortcuts has been treated here often, cannot account following.

1) put jquery dialog

function statements () {     /* initialization */   $.ajax    ({       url: '/comeandgo/movements/statements.php',       type: "get",       datatype: 'html',       async: false,       success: function (data) { $('#maincontainer').html(data); },       error: function () { alert("error"); }    });     $("#dlg_statements").dialog(    {          title:"statements",         height: 560, width: 600,         modal: true,         position: {my: "top", at: "top+60"},         buttons:         [             {                 id: "bcancel",                 text: "dismiss",                 click: function ()                 {                     $(this).dialog("close");                     location.href = gpath + "homepage.php";                 }             },             {                 id: "bok",                 text: "ok",                 click: function () {}             }         ],         draggable: false,         closeonescape: false, // (5)         resizable: false    });     $(document).bind('keydown', 'alt+j', function () { alert ('jquery.hotkeys'); });         } 

2) dlg_statements within <div> inside form part of statements.php. includes several input elements such radio buttons, drop-down menus, text input, check-box.

my problem

1) jquery.hotkeys call not respond when cursor positioned inside div's such text input field;
2) jquery.hotkeys call responds unpredictably (it does/it not) consequence of clicking in different zones of dialog;
3) jquery.hotkeys call not respond @ if try , more specific jquery wrapper, e.g. $("#dlg_statements").bind (etc.)

what doing wrong?


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -