File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,8 +341,13 @@ AppSwitcher.prototype = {
341341 let state = mods & this . _modifierMask ;
342342
343343 if ( state == 0 ) {
344- if ( this . _initialDelayTimeoutId !== 0 )
345- this . _currentIndex = ( this . _currentIndex + 1 ) % this . _windows . length ;
344+ if ( this . _initialDelayTimeoutId !== 0 ) {
345+ let name = this . _binding ? this . _binding . get_name ( ) : '' ;
346+ if ( name . includes ( 'backward' ) )
347+ this . _currentIndex = ( this . _currentIndex - 1 + this . _windows . length ) % this . _windows . length ;
348+ else
349+ this . _currentIndex = ( this . _currentIndex + 1 ) % this . _windows . length ;
350+ }
346351 this . _activateSelected ( ) ;
347352 }
348353
Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ ClassicSwitcher.prototype = {
142142
143143 this . actor . opacity = 255 ;
144144 this . _initialDelayTimeoutId = 0 ;
145- this . _next ( ) ;
145+
146+ let name = this . _binding ? this . _binding . get_name ( ) : '' ;
147+ if ( name . includes ( 'backward' ) )
148+ this . _previous ( ) ;
149+ else
150+ this . _next ( ) ;
146151 } ,
147152
148153 _hide : function ( ) {
You can’t perform that action at this time.
0 commit comments