Skip to content

Commit

Permalink
remove everthing but the tab key
Browse files Browse the repository at this point in the history
  • Loading branch information
a-st committed Oct 25, 2024
1 parent 9043936 commit 40002c3
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 330 deletions.
23 changes: 11 additions & 12 deletions plugins/de@terminal/qml/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ KeyPad {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"] }
CharKey { label: "q"; shifted: "Q"; extended: ["1"]; extendedShifted: ["1"]; leftSide: true; }
CharKey { label: "w"; shifted: "W"; extended: ["2"]; extendedShifted: ["2"] }
CharKey { label: "e"; shifted: "E"; extended: ["3", "è", "é", "ë", "ê", ""]; extendedShifted: ["3", "È","É", "Ë", "Ê", ""] }
CharKey { label: "r"; shifted: "R"; extended: ["4"]; extendedShifted: ["4"] }
Expand All @@ -44,25 +44,23 @@ KeyPad {
CharKey { label: "u"; shifted: "U"; extended: ["7", "ü","ù","ú","û"]; extendedShifted: ["7", "Ü","Ù","Ú","Û"] }
CharKey { label: "i"; shifted: "I"; extended: ["8", "ì","í","î","ï","ı"]; extendedShifted: ["8", "Ì","Í","Î","Ï","İ"] }
CharKey { label: "o"; shifted: "O"; extended: ["9", "ö","ò","ó","ô","õ","ø"]; extendedShifted: ["9", "Ö","Ò","Ó","Ô","Õ","Ø"] }
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"] }
CharKey { label: "ü"; shifted: "Ü" }
CharKey { label: "p"; shifted: "P"; extended: ["0"]; extendedShifted: ["0"]; rightSide: true; }
}

Row {
anchors.horizontalCenter: parent.horizontalCenter;
spacing: 0

CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"] }
TabKey { padding: 0 }
CharKey { label: "a"; shifted: "A"; extended: ["ä","à","á","ã","â","å","æ"]; extendedShifted: ["Ä","À","Â","Á","Ã","Å","Æ"]; leftSide: true; }
CharKey { label: "s"; shifted: "S"; extended: ["ß","ş","$"]; extendedShifted: ["","Ş","$"] }
CharKey { label: "d"; shifted: "D"; }
CharKey { label: "f"; shifted: "F"; }
CharKey { label: "g"; shifted: "G"; extended: ["ğ"]; extendedShifted: ["Ğ"]; }
CharKey { label: "h"; shifted: "H"; }
CharKey { label: "j"; shifted: "J"; }
CharKey { label: "k"; shifted: "K"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"] }
CharKey { label: "ö"; shifted: "Ö"; }
CharKey { label: "ä"; shifted: "Ä"; }
CharKey { label: "l"; shifted: "L"; extended: ["ł","£"]; extendedShifted: ["Ł","£"]; rightSide: true; }
}

Row {
Expand All @@ -77,8 +75,7 @@ KeyPad {
CharKey { label: "b"; shifted: "B"; }
CharKey { label: "n"; shifted: "N"; extended: ["ñ"]; extendedShifted: ["Ñ"] }
CharKey { label: "m"; shifted: "M"; }
CharKey { label: ","; shifted: ","; extended: ["'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "\"", ";", ":", "@", "&", "(", ")"] }
CharKey { label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"] }
CharKey { label: "ä"; shifted: "Ä"; }
BackspaceKey { padding: 0 }
}

Expand All @@ -89,9 +86,11 @@ KeyPad {
height: panel.keyHeight + Device.row_margin;

SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
ControlKey { id: ctrlKey; label: "strg"; shifted: "strg"; anchors.left: symShiftKey.right; height: parent.height; }
LanguageKey { id: languageMenuButton; anchors.left: ctrlKey.right; height: parent.height; }
SpaceKey { id: spaceKey; anchors.left: languageMenuButton.right; anchors.right: enterKey.left; noMagnifier: true; height: parent.height; }
LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
CharKey { id: commaKey; label: ","; shifted: ","; extended: ["'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "\"", ";", ":", "@", "&", "(", ")"]; anchors.left: languageMenuButton.right; height: parent.height; }
SpaceKey { id: spaceKey; anchors.left: commaKey.right; anchors.right: dotKey.left; noMagnifier: true; height: parent.height; }
CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: umlaut.left; height: parent.height; }
CharKey { id: umlaut; label: "ö"; shifted: "Ö"; anchors.right: enterKey.left; height: parent.height; }
ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
}
} // column
Expand Down
57 changes: 0 additions & 57 deletions qml/keys/CapsLockKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/ControlKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/DownKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/EndKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/EscapeKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/HomeKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/LeftKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/PageDownKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/PageUpKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/RightKey.qml

This file was deleted.

23 changes: 0 additions & 23 deletions qml/keys/UpKey.qml

This file was deleted.

11 changes: 0 additions & 11 deletions qml/keys/qmldir
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,4 @@ PressArea 1.0 PressArea.qml
SpaceKey 1.0 SpaceKey.qml
UrlKey 1.0 UrlKey.qml
CategoryKey 1.0 CategoryKey.qml
UpKey 1.0 UpKey.qml
DownKey 1.0 DownKey.qml
LeftKey 1.0 LeftKey.qml
RightKey 1.0 RightKey.qml
EscapeKey 1.0 EscapeKey.qml
TabKey 1.0 TabKey.qml
HomeKey 1.0 HomeKey.qml
EndKey 1.0 EndKey.qml
PageUpKey 1.0 PageUpKey.qml
PageDownKey 1.0 PageDownKey.qml
CapsLockKey 1.0 CapsLockKey.qml
ControlKey 1.0 ControlKey.qml
4 changes: 0 additions & 4 deletions src/lib/models/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ class Key
ActionRightLayout, //!< Switch to right/next language layout.
ActionHome, //!< Key moves cursor to beginning of text.
ActionEnd, //!< Key moves cursor to end of text.
ActionEscape, //!< Key sends Escape
ActionPageUp, //!< Key sends PageUp
ActionPageDown, //!< Key sends PageDown
ActionControl, //!< Key sends Control
NumActions
};

Expand Down
Loading

0 comments on commit 40002c3

Please sign in to comment.