X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85a17748bd94cdd5cd4ebf4d44acf1c70666eba4..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/kbdstate.h?ds=inline diff --git a/include/wx/kbdstate.h b/include/wx/kbdstate.h index 25b660c0df..71e196db3c 100644 --- a/include/wx/kbdstate.h +++ b/include/wx/kbdstate.h @@ -55,7 +55,14 @@ public: } // returns true if any modifiers at all are pressed - bool HasModifiers() const { return GetModifiers() != wxMOD_NONE; } + bool HasAnyModifiers() const { return GetModifiers() != wxMOD_NONE; } + + // returns true if any modifiers changing the usual key interpretation are + // pressed, notably excluding Shift + bool HasModifiers() const + { + return ControlDown() || RawControlDown() || AltDown(); + } // accessors for individual modifier keys bool ControlDown() const { return m_controlDown; }