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

Keyboard shortcut for Save #540

Closed
mnorbeck opened this issue Jun 30, 2016 · 21 comments
Closed

Keyboard shortcut for Save #540

mnorbeck opened this issue Jun 30, 2016 · 21 comments
Labels
🚀enhancement an issue/pull request that adds a feature to the application help wanted indicates that an issue is open for contributions ux wontfix indicates an issue/pull request will not be worked on

Comments

@mnorbeck
Copy link

Request is to provide keyboard shortcuts for Save. Ideally both Control-S and Command-S would be supported.

@jglovier jglovier added ux 🚀enhancement an issue/pull request that adds a feature to the application Accessibility help wanted indicates that an issue is open for contributions labels Jul 8, 2016
@danlourenco
Copy link

Does anyone have a problem with using an ember addon like ember-keyboard to accomplish this functionality? If not, I'd be happy to give this a stab.

@jglovier
Copy link
Member

Does anyone have a problem with using an ember addon like ember-keyboard to accomplish this functionality?

@dlo83 I think that could be a great solution. @jkleinsc any objections to that?

@jkleinsc
Copy link
Member

@jglovier and @dlo83 that is fine by me.

@danlourenco
Copy link

@jglovier, @jkleinsc : sweet, I'll take a crack at this.

@danlourenco
Copy link

FWIW: ember-keyboard doesn't yet support the command modifier key on Macs. Would a Ctrl+S shortcut suffice for the time being?

@jkleinsc
Copy link
Member

@dlo83 wouldn't the command modifier be "OSRight" and "OSLeft"? I took a quick look at ember-keyboard and it appears this would work, but I didn't test it, so maybe there is a bug that I don't know about?

@danlourenco
Copy link

danlourenco commented Jul 13, 2016

@jkleinsc one would think. However, I tried those command modifiers and was unable to trigger the update action with them. Ctrl+S worked as expected. The ember-keyboard repo explicitly states: Support for keyup, keydown, and keypress, as well as the modifier keys: ctrl, alt, shift, and meta. Perhaps the omission of command is intentional. I'll follow up with the developer of that repo.

EDIT: perhaps that's what meta was meant to do: adopted-ember-addons/ember-keyboard#38 . I'll continue looking into this.

@danlourenco
Copy link

@mnorbeck I think Ctrl+S/Cmd+S might be a problem here. It appears as though some browsers like Chrome don't allow you to override common keyboard shortcuts that are already registered in the browser (Ctrl+S, Ctrl+W, Ctrl+C, etc). Would you consider any alternatives? Perhaps adding an additional modifier key (Ctrl+Alt+S)?

@tangollama tangollama added Hack Day help wanted indicates that an issue is open for contributions and removed help wanted indicates that an issue is open for contributions labels Sep 17, 2016
@amyrlam
Copy link
Contributor

amyrlam commented Sep 23, 2016

I'll do this one with @AlyChloe

amyrlam added a commit to amyrlam/hospitalrun-frontend that referenced this issue Sep 23, 2016
amyrlam added a commit to amyrlam/hospitalrun-frontend that referenced this issue Sep 23, 2016
@taras taras assigned taras and unassigned taras Sep 24, 2016
@amyrlam
Copy link
Contributor

amyrlam commented Sep 27, 2016

👋 Let's reopen this issue for tracking, I still need to add the keyboard shortcut to all Update or Save buttons. #665 implements the keyboard shortcut in one place.

@taras taras reopened this Sep 27, 2016
@taras
Copy link
Contributor

taras commented Sep 27, 2016

@amyrlam are you able to make a list of all of the places where this change needs to be applied?

Also, we have some mixins that are used across all edit screens.

Could we add this functionality as a mixin to one of those mixins?

@amyrlam
Copy link
Contributor

amyrlam commented Sep 27, 2016

@taras sure, sounds good, I'll take a look at that and reach out if questions

@jscottchapman
Copy link
Contributor

@taras @amyrlam It looks like this one is in progress/being worked on. Is that right? Just wanted to make sure that someone didn't start working on the same issue unknowingly.

@amyrlam
Copy link
Contributor

amyrlam commented Oct 12, 2016

@jscottchapman I'm working on this one! I'll try to report back soon

@jkleinsc jkleinsc added the in progress indicates that issue/pull request is currently being worked on label Oct 12, 2016
@jkleinsc jkleinsc removed the help wanted indicates that an issue is open for contributions label Oct 12, 2016
@jkleinsc
Copy link
Member

@amyrlam thanks for the update. I'm going to mark this item as in progress then.

@tangollama tangollama added the help wanted indicates that an issue is open for contributions label Mar 14, 2017
@tangollama
Copy link
Member

@amyrlam are you still interested in this issue? If not, I'll move it back to Help Wanted.

@amyrlam
Copy link
Contributor

amyrlam commented Aug 4, 2017

move it to help wanted, but i try to work on some hospital run again soon!

@tangollama
Copy link
Member

Thx for the reply @amyrlam. Now worries. We're all volunteering. :)

@tangollama tangollama removed the in progress indicates that issue/pull request is currently being worked on label Aug 5, 2017
@DerekTBrown
Copy link
Contributor

@tangollama would love to take on this as well.

@tangollama
Copy link
Member

tangollama commented Nov 14, 2017 via email

@stale
Copy link

stale bot commented Aug 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix indicates an issue/pull request will not be worked on label Aug 7, 2019
@fox1t fox1t closed this as completed Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚀enhancement an issue/pull request that adds a feature to the application help wanted indicates that an issue is open for contributions ux wontfix indicates an issue/pull request will not be worked on
Projects
None yet
Development

No branches or pull requests

10 participants