mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 22:42:05 +08:00
keyboard: backspace key repeat (#21395)
This commit is contained in:
@@ -27,6 +27,9 @@ KeyboardLayout::KeyboardLayout(QWidget* parent, const std::vector<QVector<QStrin
|
||||
|
||||
for (const QString &p : s) {
|
||||
QPushButton* btn = new QPushButton(p);
|
||||
if (p == QString("⌫")) {
|
||||
btn->setAutoRepeat(true);
|
||||
}
|
||||
btn->setFixedHeight(135);
|
||||
btn_group->addButton(btn);
|
||||
hlayout->addWidget(btn, p == QString(" ") ? SPACEBAR_STRETCH : DEFAULT_STRETCH);
|
||||
|
||||
Reference in New Issue
Block a user