Remove hard line break menu entry

This commit is contained in:
Veronica Berglyd Olsen
2021-05-23 13:13:03 +02:00
parent 96b2d139c9
commit f1adff82a8
5 changed files with 7 additions and 22 deletions
+1 -3
View File
@@ -840,9 +840,7 @@ class GuiDocEditor(QTextEdit):
if isinstance(theInsert, str):
theText = theInsert
elif isinstance(theInsert, nwDocInsert):
if theInsert == nwDocInsert.HARD_BREAK:
theText = " \n"
elif theInsert == nwDocInsert.QUOTE_LS:
if theInsert == nwDocInsert.QUOTE_LS:
theText = self._typSQOpen
elif theInsert == nwDocInsert.QUOTE_RS:
theText = self._typSQClose
+2 -9
View File
@@ -634,15 +634,8 @@ class GuiMainMenu(QMenuBar):
self.aInsDPrime.triggered.connect(lambda: self._docInsert(nwUnicode.U_DPRIME))
self.mInsPunct.addAction(self.aInsDPrime)
# Insert > Breaks and Spaces
self.mInsBreaks = self.insertMenu.addMenu(self.tr("Breaks and Spaces"))
# Insert > Hard Line Break
self.aInsHardBreak = QAction(self.tr("Hard Line Break"), self)
self.aInsHardBreak.setStatusTip(self.tr("Insert a hard line break"))
self.aInsHardBreak.setShortcut("Ctrl+K, Return")
self.aInsHardBreak.triggered.connect(lambda: self._docInsert(nwDocInsert.HARD_BREAK))
self.mInsBreaks.addAction(self.aInsHardBreak)
# Insert > White Spaces
self.mInsBreaks = self.insertMenu.addMenu(self.tr("White Spaces"))
# Insert > Non-Breaking Space
self.aInsNBSpace = QAction(self.tr("Non-Breaking Space"), self)