]> git.lyx.org Git - features.git/commitdiff
Accelerators
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 2 Sep 2020 14:22:21 +0000 (10:22 -0400)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 3 Sep 2020 05:39:56 +0000 (07:39 +0200)
(cherry picked from commit 5606e934ac44c11943cfea9f5088d32c2cd27a2c)

src/frontends/qt4/GuiInclude.cpp

index 1abfd7b273c2829d70c602100835dc2208ddaa07..d713ef20e2b25f5623da1859d1124a28f83b3eff 100644 (file)
@@ -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;