Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishram1123 committed Feb 22, 2024
1 parent 21ea896 commit b668abf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gjsosk@vishram1123.com/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row1) {
const i = keycodes.row1[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w = topRowWidth;
let params = {
height: topRowHeight,
Expand Down Expand Up @@ -632,6 +636,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row2) {
const i = keycodes.row2[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w;
if (num == 0) {
w = ((row1.width - ((keycodes.row2.length - 2) * ((topRowWidth) + 5))) / 2) * 0.5;
Expand Down Expand Up @@ -685,6 +693,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row3) {
const i = keycodes.row3[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w;
if (num == 0) {
w = ((row1.width - ((keycodes.row3.length - 2) * ((topRowWidth) + 5))) / 2) * 1.1;
Expand Down Expand Up @@ -738,6 +750,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row4) {
const i = keycodes.row4[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w;
if (num == 0 || num == keycodes.row4.length - 1) {
w = ((row1.width - ((keycodes.row4.length - 2) * ((topRowWidth) + 5))) / 2);
Expand Down Expand Up @@ -789,6 +805,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row5) {
const i = keycodes.row5[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w;
if (num == 0 || num == keycodes.row5.length - 1) {
w = ((row1.width - ((keycodes.row5.length - 2) * ((topRowWidth) + 5))) / 2);
Expand Down Expand Up @@ -840,6 +860,10 @@ class Keyboard extends Dialog {
});
for (var num in keycodes.row6) {
const i = keycodes.row6[num]
if (i.lowerName == "") {
i.lowerName = i._lowerName;
i.upperName = i._upperName;
}
var w;
if (num == 3) {
w = ((row1.width - ((keycodes.row6.length + 1) * ((topRowWidth) + 5))));
Expand Down

0 comments on commit b668abf

Please sign in to comment.