Merge pull request #1626 from matepak/master

Fix #1583 Can't bold when Caps Lock is enabled
presentation
Bryan Tan 6 years ago committed by GitHub
commit df7efd67ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/gui/TextEditor.cpp

@ -299,7 +299,8 @@ auto TextEditor::onKeyPressEvent(GdkEventKey* event) -> bool
}
else if (event->state & GDK_CONTROL_MASK)
{
if (event->keyval == GDK_KEY_b)
//Bold text
if (event->keyval == GDK_KEY_b || event->keyval == GDK_KEY_B)
{
toggleBold();
return true;

Loading…
Cancel
Save