@@ -833,6 +833,14 @@ public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
833833 case GlobalAction . EditorDiscardUnsavedChanges :
834834 DiscardUnsavedChanges ( ) ;
835835 return true ;
836+
837+ case GlobalAction . EditorEditExternally :
838+ editExternally ( ) ;
839+ return true ;
840+
841+ case GlobalAction . EditorSubmitBeatmap :
842+ submitBeatmap ( ) ;
843+ return true ;
836844 }
837845
838846 return false ;
@@ -1284,7 +1292,10 @@ private IEnumerable<MenuItem> createFileMenuItems()
12841292
12851293 if ( RuntimeInfo . IsDesktop )
12861294 {
1287- var externalEdit = new EditorMenuItem ( EditorStrings . EditExternally , MenuItemType . Standard , editExternally ) ;
1295+ var externalEdit = new EditorMenuItem ( EditorStrings . EditExternally , MenuItemType . Standard , editExternally )
1296+ {
1297+ Hotkey = new Hotkey ( GlobalAction . EditorEditExternally )
1298+ } ;
12881299 saveRelatedMenuItems . Add ( externalEdit ) ;
12891300 yield return externalEdit ;
12901301 }
@@ -1295,7 +1306,10 @@ private IEnumerable<MenuItem> createFileMenuItems()
12951306
12961307 if ( isSetMadeOfLegacyRulesetBeatmaps && submissionAvailable )
12971308 {
1298- var upload = new EditorMenuItem ( EditorStrings . SubmitBeatmap , MenuItemType . Standard , submitBeatmap ) ;
1309+ var upload = new EditorMenuItem ( EditorStrings . SubmitBeatmap , MenuItemType . Standard , submitBeatmap )
1310+ {
1311+ Hotkey = new Hotkey ( GlobalAction . EditorSubmitBeatmap )
1312+ } ;
12991313 saveRelatedMenuItems . Add ( upload ) ;
13001314 yield return upload ;
13011315 }
@@ -1306,7 +1320,8 @@ private IEnumerable<MenuItem> createFileMenuItems()
13061320 yield return new EditorMenuItem ( EditorStrings . OpenInfoPage , MenuItemType . Standard ,
13071321 ( ) => ( Game as OsuGame ) ? . OpenUrlExternally ( editorBeatmap . BeatmapInfo . GetOnlineURL ( api , editorBeatmap . BeatmapInfo . Ruleset ) ) ) ;
13081322 yield return new EditorMenuItem ( EditorStrings . OpenDiscussionPage , MenuItemType . Standard ,
1309- ( ) => ( Game as OsuGame ) ? . OpenUrlExternally ( $@ "{ api . Endpoints . WebsiteUrl } /beatmapsets/{ editorBeatmap . BeatmapInfo . BeatmapSet ! . OnlineID } /discussion/{ editorBeatmap . BeatmapInfo . OnlineID } ") ) ;
1323+ ( ) => ( Game as OsuGame ) ? . OpenUrlExternally (
1324+ $@ "{ api . Endpoints . WebsiteUrl } /beatmapsets/{ editorBeatmap . BeatmapInfo . BeatmapSet ! . OnlineID } /discussion/{ editorBeatmap . BeatmapInfo . OnlineID } ") ) ;
13101325 }
13111326
13121327 yield return new OsuMenuItemSpacer ( ) ;
0 commit comments