AyuGramDesktop/Telegram/SourceFiles/ayu/utils/qt_key_modifiers_extended.h
ZavaruKitsu 8d93b21947 feat: message details
feat: rework `Hide`
feat: context menu configuration
2024-01-01 19:28:48 +03:00

21 lines
514 B
C++

// This is the source code of AyuGram for Desktop.
//
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
#pragma once
#include "base/qt/qt_key_modifiers.h"
namespace base {
[[nodiscard]] inline bool IsShiftPressed() {
return (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier);
}
[[nodiscard]] inline bool IsExtendedContextMenuModifierPressed() {
return IsShiftPressed() || IsCtrlPressed();
}
} // namespace base