From: Vadim Zeitlin Date: Mon, 23 Jul 2012 15:02:57 +0000 (+0000) Subject: Document wxGTK limitation for accelerators involving Shift. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/09fc8e245ca590dca3983d9e55d859c9b8917c6f?ds=sidebyside Document wxGTK limitation for accelerators involving Shift. Using Shift with non-alphabetic characters doesn't work due to GTK+ bug, see https://bugzilla.gnome.org/show_bug.cgi?id=614146 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index 83b96c7c77..5df24fdc81 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -399,7 +399,13 @@ public: m_pMyMenuItem3->SetItemLabel("Simple item"); m_pMyMenuItem4->SetItemLabel("Item with &accelerator"); @endcode - + + @note In wxGTK using @c "SHIFT" with non-alphabetic characters + currently doesn't work, even in combination with other modifiers, due + to GTK+ limitation. E.g. @c Shift+Ctrl+A works but @c Shift+Ctrl+1 or + @c Shift+/ do not, so avoid using accelerators of this form in portable + code. + @see GetItemLabel(), GetItemLabelText() */ virtual void SetItemLabel(const wxString& label);