Open Bug 1809050 Opened 2 years ago Updated 2 years ago

#menu_delete on Edit menu still shows and does `Delete message` although an event/task from Today Pane is selected

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

People

(Reporter: thomas8, Unassigned)

References

Details

(Keywords: ux-consistency, ux-error-prevention, ux-mode-error)

+++ This bug was initially created as a clone of Bug #1763468 +++

STR

  • Select a message (important!)
  • Then select an event or task from Today Pane
  • Main menu: Check and try Edit > Delete* menuitem (#menu_delete)

Actual result

  • With event from Today pane selected, #menu_delete still showing and doing Delete Message (and enabled if a message was previously selected)

Expected result

  • With event from Today pane selected, #menu_delete should show and do Delete Event or Delete Task respectively; lacking that, Delete Message should at least be disabled.

(In reply to Geoff Lankow (:darktrojan) (๐ŸŽ„, ๐Ÿ˜Ž, ๐Ÿ–๏ธ etc. - back Jan 9) from bug 1763468, comment #4)

If you go to the Delete item on the Edit menu it will delete any selected message (this code runs) even if the Today Pane has focus, which is bad. I guess if the keyboard event was somehow making it to that command the same thing would happen.

I think the simplest thing to do would be to check what has focus in the corresponding isCommandEnabled function and say if it's not inside the mail UI, return false.

Unfortunately the delete command in particular is a complete mess because it does something different in every context. It should be clearer once we've rebuilt the mail tabs.

Summary: #menu_delete on Edit menu still shows and does `Delete message` although an event from Today Pane is selected → #menu_delete on Edit menu still shows and does `Delete message` although an event/task from Today Pane is selected
You need to log in before you can comment on or make changes to this bug.