Skip to content

Commit

Permalink
fix #20697 - enable Delete key on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zazula committed Jan 31, 2014
1 parent 14cd6e5 commit e0b7965
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mscore/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1735,8 +1735,8 @@ Shortcut Shortcut::sc[] = {
QT_TRANSLATE_NOOP("action","Note entry: 8th rest")
),
Shortcut( // mapped to undo in note entry mode
STATE_NOTE_ENTRY,
0,
STATE_NORMAL | STATE_NOTE_ENTRY,
A_CMD,
"backspace",
QT_TRANSLATE_NOOP("action","Backspace")
),
Expand Down
10 changes: 8 additions & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4065,8 +4065,14 @@ void MuseScore::cmd(QAction* a, const QString& cmd)
showAlbumManager();
else if (cmd == "layer")
showLayerManager();
else if (cmd == "backspace")
undo();
else if (cmd == "backspace") {
if ( _sstate != STATE_NORMAL )
undo();
#ifdef Q_OS_MAC
else if ( cs )
cs->cmdDeleteSelection();
#endif
}
else if (cmd == "zoomin")
incMag();
else if (cmd == "zoomout")
Expand Down

0 comments on commit e0b7965

Please sign in to comment.