Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshot Shortcuts and Code Cleaning #562

Merged
merged 6 commits into from
Dec 22, 2017
Merged

Screenshot Shortcuts and Code Cleaning #562

merged 6 commits into from
Dec 22, 2017

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Dec 22, 2017

  • Screenshot Shortcut
    • CTRL/CMD-ALT-S
    • Upload Screenshot
    • Copy link to clipboard
    • Should there be a notification? (Notifications not working on Windows ). Or should we change the IPFS icon when we are uploading?
  • Upload File Shortcut
  • Download selected hash shortcut
  • Clean controls

@hacdias
Copy link
Member Author

hacdias commented Dec 22, 2017

@diasdavid AFAIK, Electron can't get selected text on screen that's not inside electron's view due to security reasons. The same happens to files: I can't know if the keys were pressed when selecting files so I don't think it is possible to create those shortcuts right now, but I'll investigate a bit more.

@hacdias
Copy link
Member Author

hacdias commented Dec 22, 2017

@diasdavid could you take a look at the code? I'm thinking of merging this and do the other two shortcuts for later (when it's possible or when I find a solution).

style: cleanup code

register shortcuts

screenshot working;

clean main controls

move filehistory handlers to controls

make renderer controls similar to main's

take screenshot

cleaning config

more cleaning

remove blank space

dont let users select text

improve transitions

remove shortcuts
@hacdias hacdias changed the title Keyboard Shortcuts and Controls Cleaning Screenshot Shortcuts and Code Cleaning Dec 22, 2017
Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a couple of comments, otherwise, LGTM

src/config.js Outdated
process.on('uncaughtException', (error) => {
const msg = error.message || error
logger.error(`Uncaught Exception: ${msg}`, error)
dialog.showErrorBox('Uncaught Exception:', msg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error box should guide the user to the issue tracker (this repo) and recommend to open a issue with the error

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do this tomorrow or sunday.

src/config.js Outdated
require('electron').crashReporter.start({
productName: 'Station',
companyName: 'IPFS',
submitURL: 'https://ipfs.io',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this submitting to?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is submitting nothing to nowhere. I'll remove this. It seems to be here since the 'old days' 😛

@hacdias hacdias merged commit 0ade832 into master Dec 22, 2017
@hacdias hacdias deleted the feat/kb-shortcuts branch December 22, 2017 23:22
@hacdias hacdias mentioned this pull request Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants