Skip to content

Commit

Permalink
Add base::IsShiftPressed helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 9, 2024
1 parent 0d111bd commit bc78a03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/qt/qt_key_modifiers.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ namespace base {
return (QGuiApplication::keyboardModifiers() == Qt::AltModifier);
}

[[nodiscard]] inline bool IsShiftPressed() {
return (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier);
}

} // namespace base

0 comments on commit bc78a03

Please sign in to comment.