Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
♻️ Code Cleanup round 2 - keyboard.class.js
Browse files Browse the repository at this point in the history
Restructured code and started cleaning up codestyle issues repo-wide
  • Loading branch information
GitSquared committed Feb 3, 2019
1 parent 8df8e8b commit 644972b
Show file tree
Hide file tree
Showing 2 changed files with 532 additions and 536 deletions.
6 changes: 3 additions & 3 deletions src/_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ipc.once("getKbOverride", (e, layout) => {
ipc.send("getKbOverride");

// Load UI theme
window._loadTheme = (theme) => {
window._loadTheme = theme => {

if (document.querySelector("style.theming")) {
document.querySelector("style.theming").remove();
Expand Down Expand Up @@ -370,7 +370,7 @@ async function initUI() {
window.mods.conninfo = new Conninfo("mod_column_right");

// Fade-in animations
document.querySelectorAll(".mod_column").forEach((e) => {
document.querySelectorAll(".mod_column").forEach(e => {
e.setAttribute("class", "mod_column activated");
});
let i = 0;
Expand Down Expand Up @@ -421,7 +421,7 @@ async function initUI() {
document.getElementById("shell_tab0").innerText = "MAIN - "+p;
};
// Prevent losing hardware keyboard focus on the terminal when using touch keyboard
window.onmouseup = (e) => {
window.onmouseup = e => {
if (window.keyboard.linkedToTerm) window.term[window.currentTerm].term.focus();
};
window.term[0].term.writeln("\033[1m"+`Welcome to eDEX-UI v${electron.remote.app.getVersion()} - Electron v${process.versions.electron}`+"\033[0m");
Expand Down
Loading

0 comments on commit 644972b

Please sign in to comment.