File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
src/Files.App/ViewModels/UserControls Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -621,36 +621,6 @@ await DialogDisplayHelper.ShowDialogAsync(Strings.InvalidItemDialogTitle.GetLoca
621621 PathControlDisplayText = ContentPageContext . ShellPage . ShellViewModel . WorkingDirectory ;
622622 }
623623
624- [ Obsolete ( "Superseded by Omnibar." ) ]
625- public void PathBoxItem_PreviewKeyDown ( object sender , KeyRoutedEventArgs e )
626- {
627- switch ( e . Key )
628- {
629- case Windows . System . VirtualKey . Down :
630- {
631- var item = e . OriginalSource as ListViewItem ;
632- var button = item ? . FindDescendant < Button > ( ) ;
633- button ? . Flyout . ShowAt ( button ) ;
634- e . Handled = true ;
635- break ;
636- }
637- case Windows . System . VirtualKey . Space :
638- case Windows . System . VirtualKey . Enter :
639- {
640- var item = e . OriginalSource as ListViewItem ;
641- var path = ( item ? . Content as PathBoxItem ) ? . Path ;
642- if ( path == PathControlDisplayText )
643- return ;
644- ToolbarPathItemInvoked ? . Invoke ( this , new PathNavigationEventArgs ( )
645- {
646- ItemPath = path
647- } ) ;
648- e . Handled = true ;
649- break ;
650- }
651- }
652- }
653-
654624 public void SwitchToCommandPaletteMode ( )
655625 {
656626 OmnibarCurrentSelectedModeName = OmnibarPaletteModeName ;
You can’t perform that action at this time.
0 commit comments