Browse Source

Do not represent the numpad divide key as a slash key character

tags/2021-05-28
hogliux 9 years ago
parent
commit
72083c1bcf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/keyboard/juce_KeyPress.cpp

+ 1
- 1
modules/juce_gui_basics/keyboard/juce_KeyPress.cpp View File

@@ -250,7 +250,7 @@ String KeyPress::getTextDescription() const
{
// some keyboard layouts use a shift-key to get the slash, but in those cases, we
// want to store it as being a slash, not shift+whatever.
if (textCharacter == '/')
if (textCharacter == '/' && keyCode != numberPadDivide)
return "/";
if (mods.isCtrlDown()) desc << "ctrl + ";


Loading…
Cancel
Save