Skip to content

Commit

Permalink
altgr fix in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 2, 2023
1 parent 368bfd2 commit e05c06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/gui/imgui/imEditor/TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ void TextEditor::HandleKeyboardInputs()
for (int i = 0; i < io.InputQueueCharacters.Size; i++)
{
auto c = io.InputQueueCharacters[i];
if (c != 0 && c != 127 && (c == '\n' || c >= 32) && !ctrl) {
//std::cout << " EnterCharacter " << (int)c << std::endl;
if (c != 0 && c != 127 && (c == '\n' || c >= 32) && (!ctrl || alt)) { // altgr is alt and ctrl
std::cout << " EnterCharacter " << (int)c << std::endl;
EnterCharacter(c, shift);
}
}
Expand Down

0 comments on commit e05c06e

Please sign in to comment.