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

Auto-Paste Functionality via Keyboard Shortcuts #98

Closed
neocotic opened this Issue Apr 24, 2012 · 2 comments

Comments

Projects
None yet
1 participant
@neocotic
Member

neocotic commented Apr 24, 2012

Same as #95, but auto-pastes a template to a input field/textarea when it was focused by the user while using a keyboard shortcut to access the template.

@ghost ghost assigned neocotic Apr 24, 2012

@neocotic

This comment has been minimized.

Show comment
Hide comment
@neocotic

neocotic May 21, 2012

Member

Attempt to find focused UI component using document.querySelector(':focus').

Member

neocotic commented May 21, 2012

Attempt to find focused UI component using document.querySelector(':focus').

@neocotic

This comment has been minimized.

Show comment
Hide comment
@neocotic

neocotic May 23, 2012

Member

I've tested this again after fixing a bug and I'm happy with the results. That said; it's worth noting the following additional changes to keyboard shortcuts;

  • They now have an independent section in the Options page
  • Content scripts are now kept up-to-date with those in use and only send requests to the controller for active hotkeys
  • Event.preventDefault is called when triggered by an input/textarea element (preventing accent characters being inserted - again, only done when active hotkeys are detected)
  • Event listener is now bound to keydown instead of keyup
Member

neocotic commented May 23, 2012

I've tested this again after fixing a bug and I'm happy with the results. That said; it's worth noting the following additional changes to keyboard shortcuts;

  • They now have an independent section in the Options page
  • Content scripts are now kept up-to-date with those in use and only send requests to the controller for active hotkeys
  • Event.preventDefault is called when triggered by an input/textarea element (preventing accent characters being inserted - again, only done when active hotkeys are detected)
  • Event listener is now bound to keydown instead of keyup

@neocotic neocotic closed this May 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment