Skip to content

Commit

Permalink
Start from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
a-st committed Oct 25, 2024
1 parent 40002c3 commit 1dc595e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 71 deletions.
4 changes: 2 additions & 2 deletions plugins/de@terminal/qml/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ KeyPad {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

TabKey { padding: 0 }
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; }
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["","Ş","$"] }
CharKey { label: "d"; shifted: "D"; }
Expand All @@ -60,7 +59,8 @@ KeyPad {
CharKey { label: "h"; shifted: "H"; }
CharKey { label: "j"; shifted: "J"; }
CharKey { label: "k"; shifted: "K"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"]; rightSide: true; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] }
CharKey { label: "ü"; shifted: "Ü"; rightSide: true; }
}

Row {
Expand Down
23 changes: 0 additions & 23 deletions qml/keys/TabKey.qml

This file was deleted.

83 changes: 42 additions & 41 deletions qml/keys/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,48 @@

function languageIdToName(languageId)
{
if (languageId == "ar") return Gettext.qsTr("Arabic");
if (languageId == "az") return Gettext.qsTr("Azerbaijani");
if (languageId == "be") return Gettext.qsTr("Belarusian");
if (languageId == "bg") return Gettext.qsTr("Bulgarian");
if (languageId == "bs") return Gettext.qsTr("Bosnian");
if (languageId == "ca") return Gettext.qsTr("Catalan");
if (languageId == "cs") return Gettext.qsTr("Czech");
if (languageId == "da") return Gettext.qsTr("Danish");
if (languageId == "de") return Gettext.qsTr("German");
if (languageId == "el") return Gettext.qsTr("Greek");
if (languageId == "en") return Gettext.qsTr("English");
if (languageId == "en@dv") return Gettext.qsTr("English\n(Dvorak)");
if (languageId == "eo") return Gettext.qsTr("Esperanto");
if (languageId == "es") return Gettext.qsTr("Spanish");
if (languageId == "fa") return Gettext.qsTr("Persian");
if (languageId == "fi") return Gettext.qsTr("Finnish");
if (languageId == "fr") return Gettext.qsTr("French");
if (languageId == "fr-ch") return Gettext.qsTr("French\n(Swiss)");
if (languageId == "gd") return Gettext.qsTr("Scottish Gaelic");
if (languageId == "he") return Gettext.qsTr("Hebrew");
if (languageId == "hr") return Gettext.qsTr("Croatian");
if (languageId == "hu") return Gettext.qsTr("Hungarian");
if (languageId == "is") return Gettext.qsTr("Icelandic");
if (languageId == "it") return Gettext.qsTr("Italian");
if (languageId == "ja") return Gettext.qsTr("Japanese");
if (languageId == "lt") return Gettext.qsTr("Lithuanian");
if (languageId == "lv") return Gettext.qsTr("Latvian");
if (languageId == "mk") return Gettext.qsTr("Macedonian");
if (languageId == "ko") return Gettext.qsTr("Korean");
if (languageId == "nl") return Gettext.qsTr("Dutch");
if (languageId == "nb") return Gettext.qsTr("Norwegian");
if (languageId == "pl") return Gettext.qsTr("Polish");
if (languageId == "pt") return Gettext.qsTr("Portuguese");
if (languageId == "ro") return Gettext.qsTr("Romanian");
if (languageId == "ru") return Gettext.qsTr("Russian");
if (languageId == "sl") return Gettext.qsTr("Slovenian");
if (languageId == "sr") return Gettext.qsTr("Serbian");
if (languageId == "sv") return Gettext.qsTr("Swedish");
if (languageId == "th") return Gettext.qsTr("Thai");
if (languageId == "tr") return Gettext.qsTr("Turkish");
if (languageId == "uk") return Gettext.qsTr("Ukrainian");
if (languageId == "ar") return Gettext.qsTr("Arabic");
if (languageId == "az") return Gettext.qsTr("Azerbaijani");
if (languageId == "be") return Gettext.qsTr("Belarusian");
if (languageId == "bg") return Gettext.qsTr("Bulgarian");
if (languageId == "bs") return Gettext.qsTr("Bosnian");
if (languageId == "ca") return Gettext.qsTr("Catalan");
if (languageId == "cs") return Gettext.qsTr("Czech");
if (languageId == "da") return Gettext.qsTr("Danish");
if (languageId == "de") return Gettext.qsTr("German");
if (languageId == "de@terminal") return Gettext.qsTr("German\n(Terminal)");
if (languageId == "el") return Gettext.qsTr("Greek");
if (languageId == "en") return Gettext.qsTr("English");
if (languageId == "en@dv") return Gettext.qsTr("English\n(Dvorak)");
if (languageId == "eo") return Gettext.qsTr("Esperanto");
if (languageId == "es") return Gettext.qsTr("Spanish");
if (languageId == "fa") return Gettext.qsTr("Persian");
if (languageId == "fi") return Gettext.qsTr("Finnish");
if (languageId == "fr") return Gettext.qsTr("French");
if (languageId == "fr-ch") return Gettext.qsTr("French\n(Swiss)");
if (languageId == "gd") return Gettext.qsTr("Scottish Gaelic");
if (languageId == "he") return Gettext.qsTr("Hebrew");
if (languageId == "hr") return Gettext.qsTr("Croatian");
if (languageId == "hu") return Gettext.qsTr("Hungarian");
if (languageId == "is") return Gettext.qsTr("Icelandic");
if (languageId == "it") return Gettext.qsTr("Italian");
if (languageId == "ja") return Gettext.qsTr("Japanese");
if (languageId == "lt") return Gettext.qsTr("Lithuanian");
if (languageId == "lv") return Gettext.qsTr("Latvian");
if (languageId == "mk") return Gettext.qsTr("Macedonian");
if (languageId == "ko") return Gettext.qsTr("Korean");
if (languageId == "nl") return Gettext.qsTr("Dutch");
if (languageId == "nb") return Gettext.qsTr("Norwegian");
if (languageId == "pl") return Gettext.qsTr("Polish");
if (languageId == "pt") return Gettext.qsTr("Portuguese");
if (languageId == "ro") return Gettext.qsTr("Romanian");
if (languageId == "ru") return Gettext.qsTr("Russian");
if (languageId == "sl") return Gettext.qsTr("Slovenian");
if (languageId == "sr") return Gettext.qsTr("Serbian");
if (languageId == "sv") return Gettext.qsTr("Swedish");
if (languageId == "th") return Gettext.qsTr("Thai");
if (languageId == "tr") return Gettext.qsTr("Turkish");
if (languageId == "uk") return Gettext.qsTr("Ukrainian");
if (languageId == "zh-hans") return Gettext.qsTr("Chinese\n(Pinyin)");
if (languageId == "zh-hant") return Gettext.qsTr("Chinese\n(Chewing)");

Expand Down
1 change: 0 additions & 1 deletion qml/keys/qmldir
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ PressArea 1.0 PressArea.qml
SpaceKey 1.0 SpaceKey.qml
UrlKey 1.0 UrlKey.qml
CategoryKey 1.0 CategoryKey.qml
TabKey 1.0 TabKey.qml
4 changes: 0 additions & 4 deletions src/view/abstracttexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,6 @@ void AbstractTextEditor::onKeyReleased(const Key &key)
event_key = Qt::Key_End;
break;

case Key::ActionTab:
event_key = Qt::Key_Tab;
break;

default:
break;
}
Expand Down

0 comments on commit 1dc595e

Please sign in to comment.