0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-19 22:52:49 +00:00

Stubbed out a userpage

This commit is contained in:
Scott Tolksdorf
2016-11-23 23:59:57 -05:00
parent 750f5c1330
commit 9e14872f06
6 changed files with 55 additions and 8 deletions

View File

@@ -49,12 +49,14 @@ const NewPage = React.createClass({
handleControlKeys : function(e){
if(!(e.ctrlKey || e.metaKey)) return;
e.stopPropagation();
e.preventDefault();
const S_KEY = 83;
const P_KEY = 80;
if(e.keyCode == S_KEY) this.save();
if(e.keyCode == P_KEY) this.print();
if(e.keyCode == P_KEY || e.keyCode == S_KEY){
e.stopPropagation();
e.preventDefault();
}
},
handleSplitMove : function(){