mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
59 lines
2.2 KiB
PHP
Executable File
59 lines
2.2 KiB
PHP
Executable File
<!--
|
|
Copyright (c) Codiad & Andr3as, distributed
|
|
as-is and without warranty under the MIT License.
|
|
See http://opensource.org/licenses/MIT for more information.
|
|
This information must remain intact.
|
|
-->
|
|
<form id="hotkey">
|
|
<?php
|
|
if (isset($_GET['action'])) {
|
|
$action = $_GET['action'];
|
|
} else {
|
|
$action = "show";
|
|
}
|
|
|
|
switch($action) {
|
|
case "show":
|
|
?>
|
|
<label>CodeSettings</label>
|
|
<div id="hotkey_div">
|
|
<table id="hotkey_list">
|
|
<tr>
|
|
<td>Command name</td>
|
|
<td>Win keybinding</td>
|
|
<td>Mac keybinging</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<button onclick="codiad.CodeSettings.add(); return false;">Add new binding</button>
|
|
<button onclick="codiad.CodeSettings.edit(); return false;">Expert settings</button>
|
|
<button onclick="codiad.CodeSettings.help(); return false;">Help</button>
|
|
<script>
|
|
codiad.CodeSettings.show();
|
|
</script>
|
|
<?php
|
|
break;
|
|
case "help":
|
|
?>
|
|
<label>CodeSettings - Help</label>
|
|
<table>
|
|
<tr>
|
|
<td>Command name:</td>
|
|
<td>Name of the Command</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Win/Mac keybinding:</td>
|
|
<td>Keys given by its name divided by dash</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Example:</td>
|
|
<td>CompletePlus Ctrl-Space</td>
|
|
</tr>
|
|
</table><button onclick="codiad.CodeSettings.showDialog(); return false;">Close</button>
|
|
<?php
|
|
break;
|
|
default:
|
|
}
|
|
?>
|
|
</form>
|