Window: keyPressEvent: don't show empty shortcuts

This commit is contained in:
Albert S. 2020-10-10 22:25:15 +02:00
父節點 98cff50c41
當前提交 adfb065358
共有 1 個檔案被更改,包括 4 行新增1 行删除

查看文件

@ -380,9 +380,12 @@ void Window::keyPressEvent(QKeyEvent *event)
}
for(EntryPushButton *button : buttonsInGrid)
{
if(!button->getEntryConfig().key.isEmpty())
{
button->showShortcut();
}
}
QKeySequence seq(event->key());
QString key = seq.toString().toLower();