]> git.lyx.org Git - features.git/commitdiff
Remove newlines from shortcut LFUNs.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 28 Mar 2020 19:15:06 +0000 (15:15 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 28 Mar 2020 19:26:40 +0000 (15:26 -0400)
(cherry picked from commit c5c16830242aa120448b2a226107073ef1703b1d)

src/frontends/qt4/GuiPrefs.cpp
status.23x

index ae0986ecc0e3d0386fadd5cddf486f221f15d905..f3e4269f317bdd8ed696ca9f9e3444968dce732f 100644 (file)
@@ -2902,6 +2902,7 @@ GuiShortcutDialog::GuiShortcutDialog(QWidget * parent) : QDialog(parent)
 {
        Ui::shortcutUi::setupUi(this);
        QDialog::setModal(true);
+       lfunLE->setValidator(new NoNewLineValidator(lfunLE));
 }
 
 
index 8789045f5da8c4addf27b31351acd3ed0ddb79f8..c700d2029843d47d0a43ab100a8f6278d3167fa2 100644 (file)
@@ -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