0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-20 05:22:47 +00:00

Apply to Edit page

This commit is contained in:
Trevor Buckner
2021-10-14 00:03:22 -04:00
parent a695540f60
commit 872125515e
4 changed files with 20 additions and 76 deletions

View File

@@ -32,9 +32,11 @@ const SharePage = createClass({
componentDidMount : function() {
document.addEventListener('keydown', this.handleControlKeys);
},
componentWillUnmount : function() {
document.removeEventListener('keydown', this.handleControlKeys);
},
handleControlKeys : function(e){
if(!(e.ctrlKey || e.metaKey)) return;
const P_KEY = 80;