Skip to content

Commit

Permalink
init memory
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 21, 2024
1 parent f958e60 commit 6eeb7bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vstgui/lib/ctexteditor.cpp
Expand Up @@ -462,6 +462,7 @@ TextEditorView::TextEditorView (ITextEditorController* controller) : CView ({0,
setWantsFocus (true);
onStyleChanged ();
stb_textedit_initialize_state (&md.editState, false);
std::fill (md.commandKeys.begin (), md.commandKeys.end (), Key ());
md.commandKeys[Index (Command::SelectAll)] = {u'a', VirtualKey::None, {ModifierKey::Control}};
md.commandKeys[Index (Command::Cut)] = {u'x', VirtualKey::None, {ModifierKey::Control}};
md.commandKeys[Index (Command::Copy)] = {u'c', VirtualKey::None, {ModifierKey::Control}};
Expand Down

0 comments on commit 6eeb7bb

Please sign in to comment.