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

Commit

Permalink
change the "accents" state to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 7, 2021
1 parent bd1bc26 commit b7896dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions qml/KeyboardContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ Item {
},
State {
name: "SYMBOLS"
},
State {
name: "ACCENTS"
}
]

Expand All @@ -93,7 +90,6 @@ Item {
property string characterKeypadSource: loadLayout(maliit_input_method.contentType,
maliit_input_method.activeLanguage)
property string symbolKeypadSource: activeKeypad ? activeKeypad.symbols : ""
property string accentsKeypadSource: activeKeypad ? activeKeypad.accents : ""

onCharacterKeypadSourceChanged: {
panel.state = "CHARACTERS";
Expand All @@ -102,10 +98,10 @@ Item {
function loadKeypad() {
if (panel.state === "CHARACTERS" ) {
return characterKeypadSource;
} else if (panel.state === "ACCENTS") {
return accentsKeypadSource;
} else {
} else if (panel.state === "SYMBOLS") {
return symbolKeypadSource;
} else {
return "languages/Keyboard_"+panel.state+".qml";
}
}

Expand Down
4 changes: 2 additions & 2 deletions qml/keys/SymojiKey.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ FlickActionKey {
panel.state = "EMOJI";
}
} else if (index == 2) {
panel.state = (state == "marks") ? "CHARACTERS" : "ACCENTS";
panel.state = (state == "marks") ? "CHARACTERS" : "accents";
state = (state == "marks") ? "signs" : "marks";
} else if (index == 3) {
if(standard)
Expand All @@ -79,7 +79,7 @@ FlickActionKey {
canvas.languageMenuShown = true;
}
} else if (index == 4) {
if(panel.state == "ACCENTS" && state =="signs") panel.state = "CHARACTERS";
if(panel.state == "accents" && state =="signs") panel.state = "CHARACTERS";
else state="marks";
}
}
Expand Down

0 comments on commit b7896dc

Please sign in to comment.