Facebook-Messenger-Desktop icon indicating copy to clipboard operation
Facebook-Messenger-Desktop copied to clipboard

ctrl/cmd-N doesn't start new chat

Open terinjokes opened this issue 10 years ago • 3 comments

Not sure where you would want this logic (it's not quite window behavior…)

document.querySelector('a[href="/new"]').dispatchEvent(
  new MouseEvent('click', {view:window, bubbles:true, cancelable:true})
);

terinjokes avatar Jan 04 '16 19:01 terinjokes

I'm not sure to see what its supposed to do... On my computer the ctrl+N just open a new FF window on messenger.com and doesnt do anything on the app. The code is already pretty messy (I looked at the new version, its much better), so I'm not sure where to put that...

Sytten avatar Jan 04 '16 20:01 Sytten

It's a feature request. In this app we should make it open a new conversation. On Jan 4, 2016 12:14 PM, "Émile Fugulin" [email protected] wrote:

I'm not sure to see what its supposed to do... On my computer the ctrl+N just open a new FF window on messenger.com and doesnt do anything on the app. The code is already pretty messy (I looked at the new version, its much better), so I'm not sure where to put that...

— Reply to this email directly or view it on GitHub https://github.com/Sytten/Facebook-Messenger-Desktop/issues/10#issuecomment-168791326 .

terinjokes avatar Jan 04 '16 20:01 terinjokes

Yes thats a good idea, we should do a new file for shortcut handling. Anyway I need to intercept the ESC key, so that would be an idea.

Sytten avatar Jan 04 '16 21:01 Sytten