From df2abff913de7ca9f9c0daad5d7ca27df5b6d9b0 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 28 Mar 2020 15:15:06 -0400 Subject: [PATCH] Remove newlines from shortcut LFUNs. (cherry picked from commit c5c16830242aa120448b2a226107073ef1703b1d) --- src/frontends/qt4/GuiPrefs.cpp | 1 + status.23x | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index ae0986ecc0..f3e4269f31 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -2902,6 +2902,7 @@ GuiShortcutDialog::GuiShortcutDialog(QWidget * parent) : QDialog(parent) { Ui::shortcutUi::setupUi(this); QDialog::setModal(true); + lfunLE->setValidator(new NoNewLineValidator(lfunLE)); } diff --git a/status.23x b/status.23x index 8789045f5d..c700d20298 100644 --- a/status.23x +++ b/status.23x @@ -82,6 +82,8 @@ What's new - Fix problems when pasting ZERO WIDTH NON-JOINER (bug 11790). +- Remove newlines from LFUNs entered in the shortcut dialog. + * INTERNALS -- 2.39.5