[LyX/2.3.x] Accelerators

Juergen Spitzmueller spitz at lyx.org
Thu Sep 3 05:14:08 UTC 2020


commit 14e23c97ad5a41ee5cb883a2ed4ee09940461331
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Wed Sep 2 10:22:21 2020 -0400

    Accelerators
    
    (cherry picked from commit 5606e934ac44c11943cfea9f5088d32c2cd27a2c)
---
 src/frontends/qt4/GuiInclude.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt4/GuiInclude.cpp b/src/frontends/qt4/GuiInclude.cpp
index 1abfd7b..d713ef2 100644
--- a/src/frontends/qt4/GuiInclude.cpp
+++ b/src/frontends/qt4/GuiInclude.cpp
@@ -314,19 +314,19 @@ bool GuiInclude::isValid()
 	int const item = typeCO->currentIndex();
 	// Are we inputting or including a LyX file?
 	if (item != 0 && item != 1) {
-		okPB->setText(qt_("OK"));
+		okPB->setText(qt_("&OK"));
 		return true;
 	}
 	// Do we have a LyX filename?
 	if (!isLyXFileName(fromqstr(fname))) {
-		okPB->setText(qt_("OK"));
+		okPB->setText(qt_("&OK"));
 		return false;
 	}
 	string const bpath = buffer().filePath();
 	// Path might be relative to current Buffer, so make absolute
 	FileName const absfname = support::makeAbsPath(fromqstr(fname), bpath);
 	// Set OK button text according to whether file already exists
-	okPB->setText(absfname.exists() ? qt_("OK") : qt_("Create"));
+	okPB->setText(absfname.exists() ? qt_("&OK") : qt_("&Create"));
 	// enable edit button iff file is open in some Buffer
 	editPB->setEnabled(theBufferList().getBuffer(absfname));
 	return true;


More information about the lyx-cvs mailing list