mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 18:06:26 -07:00
[TabDeckEditor] Refactor check ctrl to be on click (#6956)
This commit is contained in:
parent
c5372a9e92
commit
3fa377a11c
4 changed files with 17 additions and 7 deletions
|
|
@ -223,7 +223,11 @@ void TabDeckEditorVisual::processCardClickDatabaseDisplay(QMouseEvent *event,
|
|||
CardInfoPictureWithTextOverlayWidget *instance)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
actAddCard(instance->getCard());
|
||||
if (QApplication::keyboardModifiers() & Qt::ControlModifier) {
|
||||
actAddCardToSideboard(instance->getCard());
|
||||
} else {
|
||||
actAddCard(instance->getCard());
|
||||
}
|
||||
} else if (event->button() == Qt::RightButton) {
|
||||
actDecrementCard(instance->getCard());
|
||||
} else if (event->button() == Qt::MiddleButton) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue