Window: keyPressEvent: don't show empty shortcuts
This commit is contained in:
		@@ -380,9 +380,12 @@ void Window::keyPressEvent(QKeyEvent *event)
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		for(EntryPushButton *button : buttonsInGrid)
 | 
							for(EntryPushButton *button : buttonsInGrid)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if(!button->getEntryConfig().key.isEmpty())
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				button->showShortcut();
 | 
									button->showShortcut();
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		QKeySequence seq(event->key());
 | 
							QKeySequence seq(event->key());
 | 
				
			||||||
		QString key = seq.toString().toLower();
 | 
							QString key = seq.toString().toLower();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user