diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/ResumeAction.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/ResumeAction.java index 7c87486f81a5..f1b350dd06d6 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/ResumeAction.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/ResumeAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package com.intellij.xdebugger.impl.actions; import com.intellij.execution.actions.ChooseDebugConfigurationPopupAction; -import com.intellij.openapi.actionSystem.ActionPlaces; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.DumbService; @@ -26,6 +25,8 @@ import com.intellij.xdebugger.XDebuggerManager; import com.intellij.xdebugger.impl.DebuggerSupport; import org.jetbrains.annotations.NotNull; +import java.awt.event.KeyEvent; + /** * @author nik */ @@ -39,7 +40,8 @@ public class ResumeAction extends XDebuggerActionBase implements DumbAware { if (session != null && !session.isStopped()) { return session.isPaused(); } - return !ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace()); + // disable visual representation but leave the shortcut action enabled + return e.getInputEvent() instanceof KeyEvent; } @Override