Skip to content

Commit

Permalink
fix: unicode text entry on set symbol editor
Browse files Browse the repository at this point in the history
  • Loading branch information
haganbmj committed Jul 21, 2022
1 parent 9f162fe commit 0eed9aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/symbol/part_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ void SymbolPartList::onChar(wxKeyEvent& ev) {
}
break;
default:
// See gui/value/text.cpp
#ifdef __WXMSW__
// See gui/value/text.cpp
#if defined UNICODE
if (ev.GetUnicodeKey() >= WXK_SPACE) {
#elif defined __WXMSW__
if (ev.GetKeyCode() >= _(' ') && ev.GetKeyCode() == (int)ev.GetRawKeyCode()) {
#else
if (ev.GetKeyCode() >= _(' ') /*&& ev.GetKeyCode() == (int)ev.GetRawKeyCode()*/) {
Expand Down

0 comments on commit 0eed9aa

Please sign in to comment.