{"id":138,"date":"2016-11-30T21:28:09","date_gmt":"2016-11-30T19:28:09","guid":{"rendered":"http:\/\/geekinto.com\/?p=138"},"modified":"2016-11-30T21:28:09","modified_gmt":"2016-11-30T19:28:09","slug":"oracle-apex-how-to-create-hot-keys-by-javascript","status":"publish","type":"post","link":"https:\/\/howoracleapex.com\/?p=138","title":{"rendered":"Oracle APEX | How to Create Hot-Keys by JavaScript ?"},"content":{"rendered":"<p>Dear,<\/p>\n<p>Now we doing Hot-Keys by JavaScript, Its so sample \ud83d\ude42<\/p>\n<pre class=\"lang:js decode:true\">\/\/ ############################# START HOT-KEYS ############################# \/\/\r\n\/* To get code of key please..\r\nvisit: \thttp:\/\/keycode.info\/    \r\nOR \t\thttp:\/\/www.cambiaresearch.com\/articles\/15\/javascript-key-codes\r\nLicense: Free\r\nResource: www.geekinto.com , [FB Group: How to Oracle APEX]\r\nBy: Amr Abdeen [Egypt] 28-11-2016\r\n*\/\r\n\r\n\r\n\/\/ 18=alt  73=i  82=r  74=j  72=h  83=s\r\nvar map = {18: false, 73: false, 82: false, 74: false, 72: false, 83: false};\r\n$(document).keydown(function(e) {\r\n    if (e.keyCode in map) {\r\n        map[e.keyCode] = true;\r\n\t\t\r\n\t\t\/\/ [Show\/Hide] Region Info\r\n        if (map[18] &amp;&amp; map[73] ) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\t\/\/ 1- Are current status of region [showing or hiding]..? by get value of dispaly vlaue of css\r\n\t\t\tvar regionStatus = $('#xInfo').attr('style');\r\n\t\t\tif (regionStatus == \"display: none;\"){\r\n\t\t\t\t\/\/Show region\r\n\t\t\t\t$('#xInfo').show();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\/\/Hide region\r\n\t\t\t\t$('#xInfo').hide();\r\n\t\t\t\tmap[e.keyCode] = false;\r\n\t\t\t}\r\n        }\r\n\t\t\r\n\r\n\t\t\/\/ Open Departments Form.\r\n\t\tif (map[18] &amp;&amp; map[74] ) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\t$('#xDeptForm').click();\r\n\t\t\tmap[e.keyCode] = false;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\/\/ Open Employees Report.\r\n\t\tif (map[18] &amp;&amp; map[82] ) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\t$('#xEmpReport').click();\r\n\t\t\tmap[e.keyCode] = false;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\/\/ Go to Home Page.\r\n\t\tif (map[18] &amp;&amp; map[72] ) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\t$('#t_TreeNav_0').click();\r\n\t\t\tmap[e.keyCode] = false;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\/\/ Submit page\r\n\t\tif (map[18] &amp;&amp; map[83] ) {\r\n\t\t\t\r\n\t\t\t\/*NOW FIRE YOUR COMMANDS ..*\/\r\n\t\t\t$('#xSave').click();\r\n\t\t\tmap[e.keyCode] = false;\r\n\t\t}\r\n    }\r\n\t\r\n\t\r\n}).keyup(function(e) {\r\n    if (e.keyCode in map) {\r\n        map[e.keyCode] = false;\r\n    }\r\n});\r\n\r\n\/\/ ############################# END HOT-KEYS ############################# \/\/<\/pre>\n<p>Now Watching &amp; Following Steps<br \/>\n[embedyt] http:\/\/www.youtube.com\/watch?v=V-AM27N-iDk[\/embedyt]<\/p>\n<p>Download Sample APP: <a href=\"https:\/\/drive.google.com\/open?id=0B2UwfVFFBMBoc3ktdXBsbkZldHc\">Click here<br \/>\n<\/a>Follow: <a href=\"https:\/\/www.facebook.com\/groups\/187588868312495\/\">[FB Group] How to Oracle APEX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear, Now we doing Hot-Keys by JavaScript, Its so sample \ud83d\ude42 \/\/ ############################# START HOT-KEYS ############################# \/\/ \/* To get code of key please.. visit: http:\/\/keycode.info\/ OR http:\/\/www.cambiaresearch.com\/articles\/15\/javascript-key-codes License: Free Resource: www.geekinto.com , [FB&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15,13,12,2],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-apex","category-css","category-jquary","category-jscript","category-oracle"],"_links":{"self":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":1,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}