[LyX/2.3.x] Remove newlines from shortcut LFUNs.

Richard Kimberly Heck rikiheck at lyx.org
Sat Mar 28 19:06:32 UTC 2020


commit df2abff913de7ca9f9c0daad5d7ca27df5b6d9b0
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Mar 28 15:15:06 2020 -0400

    Remove newlines from shortcut LFUNs.
    
    (cherry picked from commit c5c16830242aa120448b2a226107073ef1703b1d)
---
 src/frontends/qt4/GuiPrefs.cpp |    1 +
 status.23x                     |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp
index ae0986e..f3e4269 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 8789045..c700d20 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
 


More information about the lyx-cvs mailing list