MozillaZine


Edit entries as default action (TB 91)

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
ton85
 
Posts: 149
Joined: May 30th, 2005, 7:18 am

Post Posted August 13th, 2021, 7:06 pm

TB91 has a new summary dialog, that then requires an additional click to be able to get to the edit dialog (same dialog that shows up when first creating a new entry).
Is there a way to bypass that, so that it always goes straight to editing, just like in previous versions?

WaltS48

User avatar
 
Posts: 4996
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted August 14th, 2021, 7:06 am

Right-click on the event or task and select Edit from the context menu.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

ton85
 
Posts: 149
Joined: May 30th, 2005, 7:18 am

Post Posted August 14th, 2021, 5:53 pm

I was hoping for a double click and remove that summary dialog completely.

morat
 
Posts: 4852
Joined: February 3rd, 2009, 6:29 pm

Post Posted August 15th, 2021, 6:22 am

I can use a enter key press to open the event dialog directly.

AFAIK, there isn't a pref to force a double click to open the event dialog directly.

Reference
http://searchfox.org/comm-esr78/search?q=openEventDialog
http://searchfox.org/comm-central/search?q=openEventDialog
http://searchfox.org/comm-central/search?q=summary-dialog&path=editing

TB78 uses mode="modify" on double click. TB91 uses mode="view" on double click.

DjNDB
 
Posts: 8
Joined: November 30th, 2004, 1:00 pm

Post Posted August 24th, 2021, 11:29 pm

I came here because this UI change drives me nuts. I use the calendar to store information related to each day within the description and add/edit items to an entry often. Maybe not an intended use, but it's a tool that worked well for me and has a search function. I wouldn't know what to replace it with without doing a bunch of software development and don't even want to think about migrating over a decade of entries.

I've been trying to get used to it for a few days, but I just get pissed off every time I do an edit, because I've been doing it multiple times daily for years and trained myself to easily "double click, copy/edit text, save and close" without friction.

Now I consistently double click, try to edit the text, realize I can't, get reminded of this pointless forced workflow change, and move the mouse over quite some distance to click the edit button annoyed.
That is not a healthy experience to have 10-15 times a day. I try to keep even little annoyances out of my life, since they add up in how we feel.

I hope I can figure out a way to change it, without having to compile and maintain my own build.

morat
 
Posts: 4852
Joined: February 3rd, 2009, 6:29 pm

Post Posted August 25th, 2021, 8:24 am

DjNDB wrote:I hope I can figure out a way to change it, without having to compile and maintain my own build.

You can overwrite the openEventDialogForViewing function using the userChromeJS extension. (for advanced users only)

Code: Select all
/* Thunderbird userChrome.js */

// Thunderbird 68 uses the messenger.xul page.
// Thunderbird 78 uses the messenger.xhtml page.
// Thunderbird 91 uses the messenger.xhtml page.

(function () {
  if (location == "chrome://messenger/content/messenger.xul" ||
      location == "chrome://messenger/content/messenger.xhtml") {
    setTimeout(function () {
      try {
        openEventDialogForViewing = function (item) {
          function onDialogComplete(newItem, calendar, originalItem, listener, extresponse) {
            doTransaction("modify", newItem, calendar, originalItem, listener, extresponse);
          }
          openEventDialog(item, item.calendar, "modify", onDialogComplete);
        };
      } catch (e) {
        Components.utils.reportError(e);
      }
    }, 1000);
  }
})();

userChromeJS by jikamens (compatible with TB 68 and TB 78 and TB 91)
http://addons.thunderbird.net/thunderbird/addon/986610

Instructions:

1. install userChromeJS extension
2. close email client
3. create or edit the userChrome.js file in the chrome folder
4. open email client

I tested the code and it works, however, I'm not sure if the params are correct for the openEventDialog function.

Reference
http://searchfox.org/comm-central/search?q=function+openEventDialogForViewing
http://searchfox.org/comm-central/search?q=openEventDialog%28
http://searchfox.org/comm-central/source/mail/config/version.txt

DjNDB
 
Posts: 8
Joined: November 30th, 2004, 1:00 pm

Post Posted August 25th, 2021, 9:32 am

morat wrote:
DjNDB wrote:I hope I can figure out a way to change it, without having to compile and maintain my own build.

You can overwrite the openEventDialogForViewing function using the userChromeJS extension. (for advanced users only)


Thank you so much, it works perfectly. I am familiar with chrome modifications on Firefox but never needed them for Thunderbird until now.
I had no clue userchrome.js existed, and even then, it would have probably taken me hours of debugging to figure out where to change things.

I expect it to break at some point in the future, but then at least I will know where to start looking.

Karen-KISSWPW
 
Posts: 1
Joined: October 9th, 2021, 3:20 pm

Post Posted October 9th, 2021, 3:47 pm

Thank you so much for this thread and the solution.

I change my calendar events on a daily basis too. The edit button wasn't even showing in my event windows (the windows were not big enough) so I couldn't see how to change the events at all!

This solution worked for me too.
Thanks morat.

morat
 
Posts: 4852
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 9th, 2021, 7:15 pm

You're welcome.

Return to Calendar


Who is online

Users browsing this forum: No registered users and 1 guest