Use onkeyup, handle top level for manual and generally

This commit is contained in:
mattpass
2020-03-14 11:26:31 +00:00
parent e666f38124
commit 0ce5fc0bd2
8 changed files with 8 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ $t = $text['index'];
"ICEcoder.newDirPerms = ".$ICEcoder["newDirPerms"].";".
"ICEcoder.newFilePerms = ".$ICEcoder["newFilePerms"].";";
echo "ICEcoder.csrf = '".$_SESSION["csrf"]."';";
?>ICEcoder.init()<?php echo $updateMsg.$onLoadExtras;?>;ICEcoder.content.style.visibility='visible';ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = iceLoc+'/processes/on-load.php';<?php if(isset($_GET["display"]) && $_GET["display"] == "updated") {echo "ICEcoder.updated();";};?>" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="ICEcoder.resetKeys(event);" onBlur="ICEcoder.resetKeys(event);">
?>ICEcoder.init()<?php echo $updateMsg.$onLoadExtras;?>;ICEcoder.content.style.visibility='visible';ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = iceLoc+'/processes/on-load.php';<?php if(isset($_GET["display"]) && $_GET["display"] == "updated") {echo "ICEcoder.updated();";};?>" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="if('visible' === get('blackMask').style.visibility) {ICEcoder.handleModalKeyUp(event, 'modalGeneralCatch')}; ICEcoder.resetKeys(event);" onBlur="ICEcoder.resetKeys(event);">
<div id="blackMask" class="blackMask" onClick="if (!ICEcoder.overPopup) {ICEcoder.showHide('hide',this)}" onContextMenu="return false">
<div class="popupVCenter">

View File

@@ -50,7 +50,7 @@ echo ($ICEcoder["theme"] === "default"
<link rel="stylesheet" href="../<?php echo $ICEcoder["codeMirrorDir"]; ?>/addon/scroll/simplescrollbars.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="backup-versions" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'versions')" onload="this.focus();">
<body class="backup-versions" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'versions')" onload="this.focus();">
<h1 id="title"><?php echo $versions." ".($versions != 1 ? $t["backups"] : $t["backup"])." ".$t['available for'].":";?></h1>
<h2><?php echo $file;?></h2>

View File

@@ -127,7 +127,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
<link rel="stylesheet" type="text/css" href="ftp-manager.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="ftpManager" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'ftpManager')" onload="this.focus();">
<body class="ftpManager" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'ftpManager')" onload="this.focus();">
<h1><?php echo $t['ftp manager'];?></h1>

View File

@@ -13,7 +13,7 @@ $t = $text['help'];
<link rel="stylesheet" type="text/css" href="help.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="help" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'help')" onload="this.focus();">
<body class="help" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'help')" onload="this.focus();">
<h1 id="title"><?php echo $t['shortcuts'];?></h1>

View File

@@ -19,7 +19,7 @@ if(isset($_GET['selectedFiles'])) {
<script>ICEcoder = parent.ICEcoder;</script>
</head>
<body class="results" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'multipleResults')" onload="get('loadingMask').style.visibility = 'hidden'; this.focus();">
<body class="results" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'multipleResults')" onload="get('loadingMask').style.visibility = 'hidden'; this.focus();">
<h1 id="title"></h1>
<div class="resultsPane" id="resultsPane">

View File

@@ -180,7 +180,7 @@ function deletePlugin($dir) {
<link rel="stylesheet" type="text/css" href="plugins-manager.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="pluginsManager" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'pluginsManager')" onload="this.focus();">
<body class="pluginsManager" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'pluginsManager')" onload="this.focus();">
<h1><?php echo $t['plugins'];?></h1>

View File

@@ -20,7 +20,7 @@ if (!file_exists($fileName) || strpos(str_replace("\\","/",$fileName),$docRoot)
<link rel="stylesheet" type="text/css" href="properties.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="properties" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'properties')" onload="this.focus();">
<body class="properties" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'properties')" onload="this.focus();">
<h1 id="title"><?php echo $t['properties'];?></h1>

View File

@@ -38,7 +38,7 @@ for ($i=0;$i<count($themeArray);$i++) {
<link rel="stylesheet" href="../<?php echo $ICEcoder["codeMirrorDir"]; ?>/addon/scroll/simplescrollbars.css?microtime=<?php echo microtime(true);?>">
</head>
<body class="settings" onkeydown="parent.ICEcoder.handleModalKeyUp(event, 'settings')" onload="this.focus();">
<body class="settings" onkeyup="parent.ICEcoder.handleModalKeyUp(event, 'settings')" onload="this.focus();">
<div class="infoPane">
<a href="https://icecoder.net" target="_blank"><img src="../images/icecoder.png" alt="ICEcoder" class="logo"></a>