Skip to content

Commit

Permalink
Keyboard UX: Easier to type URLs (commaai#33517)
Browse files Browse the repository at this point in the history
Easier access to / and -
  • Loading branch information
ugtthis authored Sep 10, 2024
1 parent f1331ae commit c8eb591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/widgets/keyboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const QString BACKSPACE_KEY = "";
const QString ENTER_KEY = "";

const QMap<QString, int> KEY_STRETCH = {{" ", 5}, {ENTER_KEY, 2}};
const QMap<QString, int> KEY_STRETCH = {{" ", 3}, {ENTER_KEY, 2}};

const QStringList CONTROL_BUTTONS = {"", "", "ABC", "#+=", "123", BACKSPACE_KEY, ENTER_KEY};

Expand Down Expand Up @@ -107,7 +107,7 @@ Keyboard::Keyboard(QWidget *parent) : QFrame(parent) {
{"q", "w", "e", "r", "t", "y", "u", "i", "o", "p"},
{"a", "s", "d", "f", "g", "h", "j", "k", "l"},
{"", "z", "x", "c", "v", "b", "n", "m", BACKSPACE_KEY},
{"123", " ", ".", ENTER_KEY},
{"123", "/", "-", " ", ".", ENTER_KEY},
};
main_layout->addWidget(new KeyboardLayout(this, lowercase));

Expand Down

0 comments on commit c8eb591

Please sign in to comment.