Remove plot resolution step key bindings Ctrl+Enter and Ctrl+Backspace

Many applications, including Manuskript in the Editor pane, use the
keyboard shortcut 'Ctrl+Backspace' to delete the previous word.
However in the Plot pane Manuskript uses 'Ctrl+Backspace' to delete a
plot resolution step.

Fix this inconsistent behaviour by removing the keyboard shortcuts for
'Ctrl+Enter' and 'Ctrl+Backspace' from the Plot pane.

Closes issue #375
This commit is contained in:
Curtis Gedak 2018-11-22 09:32:47 -07:00
parent 98a629454e
commit 5ea37bd192
2 changed files with 4 additions and 12 deletions

View file

@ -1418,10 +1418,8 @@ class Ui_MainWindow(object):
self.label_28.setText(_translate("MainWindow", "Result"))
self.tabPlot.setTabText(self.tabPlot.indexOf(self.infos_2), _translate("MainWindow", "Basic info"))
self.grpSubPlotSummary.setTitle(_translate("MainWindow", "Summary:"))
self.btnAddSubPlot.setToolTip(_translate("MainWindow", "Add plot step (CTRL+Enter)"))
self.btnAddSubPlot.setShortcut(_translate("MainWindow", "Ctrl+Return"))
self.btnRmSubPlot.setToolTip(_translate("MainWindow", "Remove selected plot step(s) (CTRL+Backspace)"))
self.btnRmSubPlot.setShortcut(_translate("MainWindow", "Ctrl+Backspace"))
self.btnAddSubPlot.setToolTip(_translate("MainWindow", "Add plot step"))
self.btnRmSubPlot.setToolTip(_translate("MainWindow", "Remove selected plot step(s)"))
self.tabPlot.setTabText(self.tabPlot.indexOf(self.tab_15), _translate("MainWindow", "Resolution steps"))
self.grpPlotSummary.setTitle(_translate("MainWindow", "Summary"))
self.comboBox_2.setItemText(0, _translate("MainWindow", "One paragraph"))

View file

@ -1348,7 +1348,7 @@
<item>
<widget class="QPushButton" name="btnAddSubPlot">
<property name="toolTip">
<string>Add plot step (CTRL+Enter)</string>
<string>Add plot step</string>
</property>
<property name="text">
<string/>
@ -1357,9 +1357,6 @@
<iconset theme="list-add">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="shortcut">
<string>Ctrl+Return</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
@ -1368,7 +1365,7 @@
<item>
<widget class="QPushButton" name="btnRmSubPlot">
<property name="toolTip">
<string>Remove selected plot step(s) (CTRL+Backspace)</string>
<string>Remove selected plot step(s)</string>
</property>
<property name="text">
<string/>
@ -1377,9 +1374,6 @@
<iconset theme="list-remove">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="shortcut">
<string>Ctrl+Backspace</string>
</property>
<property name="flat">
<bool>true</bool>
</property>