-
Notifications
You must be signed in to change notification settings - Fork 1
/
hotkeys.js
29 lines (27 loc) · 1.01 KB
/
hotkeys.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This file is part of Mass Control Tycoon.
* Copyright 2013-2014 by MCT Team (see TEAM file) - All rights reserved.
* Project page @ https://github.com/mctteam/mct
* Author(s) Martin Kelm
*
* Mass Control Tycoon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Mass Control Tycoon is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Mass Control Tycoon. If not, see <http://www.gnu.org/licenses/>.
*/
// some hotkey functions
$("html").keyup(function(e){
if (e.which == 27){
mct.util.quit();
} else if (e.which == 112){
mct.pixi.setFpsCounter(true, mct.pixi);
}
});