Skip to content

Commit 7173fce

Browse files
committed
Fix Standalone project creator key listener (wpilibsuite#608)
Add more context to console logs
1 parent 393ec85 commit 7173fce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wpilib-utility-standalone/src/projectcreator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const app = remote.app;
135135
// const shell = electron.shell;
136136
const basepath = app.getAppPath();
137137

138-
console.log(basepath);
138+
console.log('BasePath: ' + basepath);
139139

140140
let resourceRoot = path.join(basepath, 'resources');
141141
if (basepath.indexOf('default_app.asar') >= 0) {
@@ -168,14 +168,14 @@ window.addEventListener('load', async () => {
168168
disposables.push(javaExamples);
169169
disposables.push(javaTemplates);
170170

171-
console.log(projectRootPath);
172-
console.log(gradleRoot);
171+
console.log('ProjectRootPath: ' + projectRootPath);
172+
console.log('GradleRoot: ' + gradleRoot);
173173
});
174174

175175
document.addEventListener('keydown', (e) => {
176-
if (e.which === 123) {
176+
if (e.key === '{') {
177177
bWindow.webContents.openDevTools();
178-
} else if (e.which === 116) {
178+
} else if (e.key === 't') {
179179
location.reload();
180180
}
181181
});

0 commit comments

Comments
 (0)