2828#include " global/io/file.h"
2929#include " global/serialization/xmlstreamreader.h"
3030#include " global/serialization/xmlstreamwriter.h"
31- #include " global/containers.h"
3231
3332#include " multiwindows/resourcelockguard.h"
34- #include " ui/navigationcommands.h"
3533
3634#include " log.h"
3735
3836using namespace muse ;
3937using namespace muse ::shortcuts;
4038using namespace muse ::async;
41- using namespace muse ::ui;
4239
4340static constexpr std::string_view SHORTCUTS_TAG (" Shortcuts" );
4441static constexpr std::string_view SHORTCUT_TAG (" SC" );
@@ -49,25 +46,6 @@ static constexpr std::string_view AUTOREPEAT_TAG("autorepeat");
4946
5047static const std::string SHORTCUTS_RESOURCE_NAME (" SHORTCUTS" );
5148
52- static const std::map<std::string, rcommand::Command> compatActionToCommand = {
53- { " nav-next-section" , NEXT_SECTION_COMMAND },
54- { " nav-prev-section" , PREV_SECTION_COMMAND },
55- { " nav-next-panel" , NEXT_PANEL_COMMAND },
56- { " nav-prev-panel" , PREV_PANEL_COMMAND },
57- { " nav-next-tab" , NEXT_PANEL_COMMAND },
58- { " nav-prev-tab" , PREV_PANEL_COMMAND },
59- { " nav-trigger-control" , TRIGGER_CONTROL_COMMAND },
60- { " nav-right" , RIGHT_COMMAND },
61- { " nav-left" , LEFT_COMMAND },
62- { " nav-up" , UP_COMMAND },
63- { " nav-down" , DOWN_COMMAND },
64- { " nav-escape" , ESCAPE_COMMAND },
65- { " nav-first-control" , FIRST_CONTROL_COMMAND },
66- { " nav-last-control" , LAST_CONTROL_COMMAND },
67- { " nav-nextrow-control" , NEXTROW_CONTROL_COMMAND },
68- { " nav-prevrow-control" , PREVROW_CONTROL_COMMAND },
69- };
70-
7149static const std::map<QKeySequence::StandardKey, QKeyCombination> SHORTCUTS_EXPAND_IGNORE_MAP = {
7250 { QKeySequence::StandardKey::HelpContents, Qt::Key_Help },
7351 { QKeySequence::StandardKey::Open, Qt::Key_Open },
@@ -346,10 +324,6 @@ Shortcut ShortcutsRegister::readShortcut(XmlStreamReader& reader) const
346324
347325 if (tag == ACTION_CODE_TAG ) {
348326 shortcut.action = reader.readAsciiText ();
349- const rcommand::Command& command = muse::value (compatActionToCommand, shortcut.action );
350- if (command.isValid ()) {
351- shortcut.action = command.toString ();
352- }
353327 } else if (tag == STANDARD_KEY_TAG ) {
354328 shortcut.standardKey = QKeySequence::StandardKey (reader.readInt ());
355329 } else if (tag == SEQUENCE_TAG ) {
0 commit comments