@@ -28,6 +28,7 @@ import { AccessibilityVerbositySettingId } from '../../accessibility/browser/acc
28
28
import { AccessibilityCommandId } from '../../accessibility/common/accessibilityCommands.js' ;
29
29
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js' ;
30
30
import { hasNativeContextMenu } from '../../../../platform/window/common/window.js' ;
31
+ import { Gesture , EventType as TouchEventType } from '../../../../base/browser/touch.js' ;
31
32
32
33
const $ = dom . $ ;
33
34
@@ -87,12 +88,15 @@ export class StartDebugActionViewItem extends BaseActionViewItem {
87
88
this . start . setAttribute ( 'role' , 'button' ) ;
88
89
this . _setAriaLabel ( title ) ;
89
90
90
- this . toDispose . push ( dom . addDisposableListener ( this . start , dom . EventType . CLICK , ( ) => {
91
- this . start . blur ( ) ;
92
- if ( this . debugService . state !== State . Initializing ) {
93
- this . actionRunner . run ( this . action , this . context ) ;
94
- }
95
- } ) ) ;
91
+ this . _register ( Gesture . addTarget ( this . start ) ) ;
92
+ for ( const event of [ dom . EventType . CLICK , TouchEventType . Tap ] ) {
93
+ this . toDispose . push ( dom . addDisposableListener ( this . start , event , ( ) => {
94
+ this . start . blur ( ) ;
95
+ if ( this . debugService . state !== State . Initializing ) {
96
+ this . actionRunner . run ( this . action , this . context ) ;
97
+ }
98
+ } ) ) ;
99
+ }
96
100
97
101
this . toDispose . push ( dom . addDisposableListener ( this . start , dom . EventType . MOUSE_DOWN , ( e : MouseEvent ) => {
98
102
if ( this . action . enabled && e . button === 0 ) {
0 commit comments