Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Recent Projects - Pressing delete key removes project from list #5354

Merged
merged 2 commits into from
Oct 21, 2013

Conversation

sandeepjain
Copy link
Contributor

Issue #5335

@ghost ghost assigned JeffryBooher Sep 26, 2013
@@ -202,6 +231,13 @@ define(function (require, exports, module) {
}
keyHandled = true;
break;
case KeyEvent.DOM_VK_BACK_SPACE:
case KeyEvent.DOM_VK_DELETE:
keyHandled = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be inside the if ($dropdownItem) { ... } ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that keyHandled is indication that popup have something to do with this key. When user presses DELETE key while the project menu is open, user expects some action on the recent project menu itself and no where else. We should consider that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but you want the key event to continue propagating if there is no $dropdownItem otherwise things stop working.

@JeffryBooher
Copy link
Contributor

Looks good. Merging

JeffryBooher added a commit that referenced this pull request Oct 21, 2013
Recent Projects - Pressing delete key removes project from list
@JeffryBooher JeffryBooher merged commit ce74cb5 into adobe:master Oct 21, 2013
@sandeepjain sandeepjain deleted the issue-5335 branch October 22, 2013 08:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants