Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

ctrl/cmd-N doesn't start new chat #10

Open
terinjokes opened this issue Jan 4, 2016 · 3 comments
Open

ctrl/cmd-N doesn't start new chat #10

terinjokes opened this issue Jan 4, 2016 · 3 comments

Comments

@terinjokes
Copy link

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})
);
@Sytten
Copy link
Owner

Sytten commented Jan 4, 2016

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...

@terinjokes
Copy link
Author

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" notifications@github.com 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
#10 (comment)
.

@Sytten
Copy link
Owner

Sytten commented Jan 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants