Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Keyboard shortcuts not working #36

Closed
dmusican opened this issue Jan 15, 2019 · 19 comments
Closed

Keyboard shortcuts not working #36

dmusican opened this issue Jan 15, 2019 · 19 comments
Assignees
Labels
bug Something isn't working Priority-High

Comments

@dmusican
Copy link

The ctrl-alt-number keyboard shortcuts seem to have stopped working for me. Thunderlink 1.2.7, Thunderbird 60.2.1, Ubuntu 18.04.1. I've verified that my window manager isn't intercepting the shortcuts by successfully getting another app to receive them. Did something change recently either in Thunderlink or in Thunderbird regarding those shortcuts?

@mikehardy
Copy link
Owner

In fact something appears to be broken - and I just reproduced it yesterday after @kgorlen reported it as a comment here #23 (comment) but it should be a first-class issue, yes, so thank you for logging it.

The breakage is not intentional and I am hoping to fix it today - sorry it happened

In the meantime, all the old releases are available on both add-ons main site as well as here in the releases section - I do not believe 1.2.6 had the problem but I am not 100% sure - if you could try and report back that would be useful for others https://github.com/mikehardy/thunderlink/releases

@mikehardy mikehardy added bug Something isn't working Priority-High labels Jan 15, 2019
@mikehardy mikehardy self-assigned this Jan 15, 2019
@MarioKusek
Copy link
Collaborator

Hi Mike,

I have looked the code and in thunderlink-overlay.xul are keys mapped to call ThunderLinkChromeNS.CopyCustomTlStringToClp. This function no longer exist it is changed to: ThunderLinkChromeNS.ActivateCustomTlString.

@dmusican
Copy link
Author

Thanks, @mikehardy, for taking a look. I just rolled back to 1.2.6: yep, the keyboard shortcuts still work in 1.2.6.

@MarioKusek
Copy link
Collaborator

MarioKusek commented Jan 15, 2019

I have created fix in https://github.com/MarioKusek/thunderlink/tree/fix/shortcutfix
@mikehardy to which branch you want me to create pull request?

@mikehardy
Copy link
Owner

@MarioKusek that is great - thank you so much! Go ahead and create the PR for master. I am okay with packaging this with multi-select to get the fix out.

@dmusican thanks for checking 1.2.6 - until 1.2.8 gets approved (sometimes takes a few days) this will help me support anyone else

@mikehardy
Copy link
Owner

(and in the meantime, I need to figure out some way to make this kind of a "build break" so it can't happen again in the future - the xul <-> js connection isn't lintable I guess, but I need to investigate)

@mikehardy
Copy link
Owner

This was resolved with #37 and 1.2.8 has been tagged and submitted for review, it will be published as soon as thunderbird.net approves it

@mikehardy
Copy link
Owner

Sorry - was called away before I could post this, but anyone affected may install the release directly before it is approved. This is the exact same binary that I submitted to add-ons.thunderbird.net https://github.com/mikehardy/thunderlink/releases/download/1.2.8/thunderlink-1.2.8-tb.xpi

@mikehardy
Copy link
Owner

Apologies for the spam but this was all reported and fixed so quickly the communication timeline is compressed. They just approved it so 1.2.8 is out through official channels. That was amazingly quick.

@kgorlen
Copy link

kgorlen commented Jan 15, 2019 via email

@mikehardy
Copy link
Owner

@kgorlen I want to help but I just can't reproduce the problem with <subject>\n<thunderlink> on my linux or windows tests. You can see the console (ctrl+shift+J in thunderbird) and how it saw the format I copied from your preference, decoded it, and then at the bottom that was me just pasting the clipboard into the window after I did a right-click and selected the message, then selected the 3rd preference. It worked with Ctrl+Alt+3 as well. ???

I want to be clear - I'm sure there is a problem somewhere I just don't know where. Maybe you could try clearing your thunderlink preferences and reconfiguring? (or just putting a fresh attempt at subject+TL in an unused slot)?

screenshot from 2019-01-15 14-36-59

@kgorlen
Copy link

kgorlen commented Jan 20, 2019 via email

@mikehardy
Copy link
Owner

Sorry that didn't work out for you. If you try the current version again send a screenshot of the Javascript cinsile after trying your shortcut and ill take a look

@kgorlen
Copy link

kgorlen commented Jan 22, 2019 via email

@mikehardy
Copy link
Owner

Just as a note - your screenshot didn't come through, you have to upload those using github's actual web ui. However, if you look at my console screenshot, I had actually tried (what I thought was) your shortcut with \n in it, so I'm still confused a bit, but I'm happy you got it working enough to stay up to date on the plugin. With 1.2.9 we just hit a point where as far as I know there are no more regressions and it'll work up to Thunderbird 65 so you'll be future-proof (for a while at least)

@kgorlen
Copy link

kgorlen commented Jan 23, 2019 via email

@mikehardy
Copy link
Owner

Maybe the characters causing the problem are CR+LF, since this is on Windows?

That's a good guess - I was just using '\n' and maybe '\r\n' would do it, but what I don't understand is why your preference said this when you pasted it in above:

user_pref("extensions.thunderlink.custom-tl-string-3","<subject>\n<thunderlink>");

...and when I literally copy/pasted your preference string into my copy it didn't work. 🤔

@kgorlen
Copy link

kgorlen commented Jan 24, 2019 via email

@mikehardy
Copy link
Owner

Ah ha! Glad to have the final info on that, thanks for trying one more time so we could know for the future. I'll remember the escapes in the future, and I'm glad you like it - I'm completely addicted to this add-on myself so I'm happy to help :-). Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Priority-High
Projects
None yet
Development

No branches or pull requests

4 participants