Skip to content

Commit

Permalink
Update shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDTill committed Nov 8, 2024
1 parent 2333e21 commit da7a145
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/mathtoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "typeset_syntax.h"
#include <QFontDatabase>
#include <QHeaderView>
#include <QKeyCombination>
#include <QScrollBar>
#include <QTableWidget>
#include <QToolButton>
Expand Down Expand Up @@ -104,10 +103,10 @@ void MathToolbar::setupSymbolTable(){

void MathToolbar::setupScripts(){
QAction* subscript = new EnclosedTypesetAction("A", SYNTAX_CMD "_", CONSTRUCT_STR SUBSCRIPT_STR OPEN_STR, CLOSE_STR, this);
subscript->setShortcut(QKeyCombination(Qt::KeyboardModifiers(Qt::ControlModifier|Qt::ShiftModifier), Qt::Key_Minus));
subscript->setShortcut(Qt::CTRL | Qt::SHIFT | Qt::Key_Minus);
addAction(subscript);
QAction* superscript = new EnclosedTypesetAction("B", SYNTAX_CMD "^", CONSTRUCT_STR SUPERSCRIPT_STR OPEN_STR, CLOSE_STR, this);
superscript->setShortcut(QKeyCombination(Qt::KeyboardModifiers(Qt::ControlModifier|Qt::ShiftModifier), Qt::Key_Equal));
superscript->setShortcut(Qt::CTRL | Qt::Key_Plus);
addAction(superscript);
addAction(new TypesetAction("C", SYNTAX_CMD "^_", CONSTRUCT_STR DUALSCRIPT_STR OPEN_STR CLOSE_STR CLOSE_STR, this));
}
Expand Down

0 comments on commit da7a145

Please sign in to comment.