Giter Site home page Giter Site logo

Comments (11)

jeffhsta avatar jeffhsta commented on July 17, 2024

The implementation of shortcuts is done. Now we need create a window to show to the user shortcuts available

from pixelated-user-agent.

giovaneliberato avatar giovaneliberato commented on July 17, 2024

I did QA on this issue.

Most of the shortcuts works fine, except for the previous and next emails.
Another thing to point is that the send shortcut only works with control and doesn't support command. This may not be so intuitive for mac users.

ps: there's no unit tests for this feature :(

from pixelated-user-agent.

re-nobre avatar re-nobre commented on July 17, 2024

I also tested here and found one not expected behavior:
when I press "ctrl + enter" to send an email, one more line is added on the email.

from pixelated-user-agent.

bwagnerr avatar bwagnerr commented on July 17, 2024

I reverted it, because the focus logic broke the all the functional tests, I'll move this back to the backlog for now

from pixelated-user-agent.

giovaneliberato avatar giovaneliberato commented on July 17, 2024

Another bug: it is not possible to copy any text because it triggers the compose shortcut

from pixelated-user-agent.

jeffhsta avatar jeffhsta commented on July 17, 2024

I implemented that feature using linux, it means that I didn't test using "command" just implemented for "Shift", "Ctrl" and "Alt" on shortcuts, that I guess is the issue.

from pixelated-user-agent.

treppo avatar treppo commented on July 17, 2024

i started working on this in a fork https://github.com/treppo/pixelated-user-agent/tree/keyboard-shortcuts.
does it make sense to merge this in pieces, say a piece for opening and closing the compose box with the and keys or do a big pull request once the feature is completely implemented?
i wonder if this should be tested by a feature test. i wrote one for it (treppo@1b6d8b2) but can't get it to work – the screenshots tell me it doesn't open the compose box when i send a . i'm not very familiar with python-selenium and not too sure if calling #send_keys on the body tag is the problem.

from pixelated-user-agent.

treppo avatar treppo commented on July 17, 2024

so far implemented:

  • Previous mail on the list/move up: Up or "k"
  • Next mail on the list/move down: Down or "j"
  • Check current email's checkbox: x
  • Close open email: Esc
  • Send: Command/Control + Enter
  • Compose: c
  • Focus on search input: / or "s"
  • Tag email (open "new tag" input): t
  • Open keyboard shortcuts map: ?
  • Reply: r
  • Reply to all: a
  • Forward: f
  • Delete: #

from pixelated-user-agent.

bwagnerr avatar bwagnerr commented on July 17, 2024

hello!
I would suggest you open a PR from that branch, even if it is not ready, so we can follow you on the solution and help seeing the code.

from pixelated-user-agent.

bwagnerr avatar bwagnerr commented on July 17, 2024

@treppo A good thing would be to create a pull request with the base implementation (the base for using and creating shortcuts) and then implement them on your pace, with pull requests for the changes.

from pixelated-user-agent.

treppo avatar treppo commented on July 17, 2024

@bwagnerr I opened the PR to track the progress. I don't quite know how I should make a base for shortcuts as I think they work just as any other flightjs component.
So far I've implemented all the shortcuts that don't change the state of the mail list (as I think that will be the most complicated part).

from pixelated-user-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.