Details
-
Type: Task
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Sprint:Summer 7: 31 Aug - 11 Sep, Fall 1: 14 Sep - 25 Sep, Fall 2: 28 Sep - 9 Oct
Description
In the Toolbar section of the Preferences panel, users can assign and re-assign keystrokes for different actions.
If a user enters a keystroke to use for an action that is already being used for another action, the following popup window would appear letting the user know that the keystroke they're about to use for an action is already being used.
The label for the action already assigned to the keystroke is displayed (highlighted in yellow in image)
The issue is that for some actions, if there is a keystroke assigned to them and then the user tries to re-assign the same keystroke for a different action, the same popup window would appear, but the label for the current assigned action just says "???" instead of the name of the action.
This bug happens for the following actions:
- Home
- Load session
- Import Genome [Open Genome from File]
- Save Image
- Thresholding
- View Genomic Sequence
- View Read Sequence
- Configure Web Links
For example:
If a user assigns "CTRL+J" for the action "Load session", then re-assigns "CTRL+J" to any different action, the popup window with the "???" would appear.
I was working on this ticket today. I figured there is a discrepancy in the above actions being added to GenericActions Hashmap. Since there is no mapping present for the above actions, the value of genericAction in KeyStrokeEditPanel.java file is null and hence, the value assigned to actionDisplayName is "???" which appears in the dialog box.
I tried to fix this by adding the action to GenericActions hashmap, but the actions which have a default keyStroke value are appearing twice in the Preferences toolbar menu. Will look into this and fix it.