8000 Removed comments with dev notes. · arduino/lab-micropython-editor@9231661 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9231661

Browse files
committed
Removed comments with dev notes.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent bd3cc3b commit 9231661

File tree

3 files changed

+1
-60
lines changed

3 files changed

+1
-60
lines changed

backend/menu.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ module.exports = function registerMenu(win, state = {}) {
173173
openAboutWindow({
174174
icon_path: path.resolve(__dirname, '../ui/arduino/media/about_image.png'),
175175
css_path: path.resolve(__dirname, '../ui/arduino/views/about.css'),
176-
// about_page_dir: path.resolve(__dirname, '../ui/arduino/views/'),
177176
copyright: '© Arduino SA 2022',
178177
package_json_dir: path.resolve(__dirname, '..'),
179178
bug_report_url: "https://github.com/arduino/lab-micropython-editor/issues",

index.js

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -92,53 +92,6 @@ function registerShortcuts() {
9292
shortcutAction(shortcut)
9393
});
9494
})
95-
// shortcuts.forEach(element => {
96-
// globalShortcut.register(element, () => {
97-
98-
// shortcutAction(element)
99-
// });
100-
// });
101-
// globalShortcut.register(shortcuts.RUN, () => {
102-
// console.log('Running Program')
103-
// shortcutAction(shortcuts.RUN)
104-
// })
105-
// globalShortcut.register('CommandOrControl+Alt+R', () => {
106-
// console.log('Running Code Selection')
107-
// shortcutAction('meta_alt_r')
108-
// })
109-
// globalShortcut.register('CommandOrControl+H', () => {
110-
// console.log('Stopping Program (Halt)')
111-
// shortcutAction('meta_h')
112-
// })
113-
// globalShortcut.register('CommandOrControl+S', () => {
114-
// console.log('Saving File')
115-
// shortcutAction('meta_s')
116-
// })
117-
118-
// globalShortcut.register('CommandOrControl+Shift+R', () => {
119-
// console.log('Resetting Board')
120-
// shortcutAction('meta_shift_r')
121-
// })
122-
// globalShortcut.register(shortcuts.CONNECT, () => {
123-
// console.log('Connect to Board')
124-
// shortcutAction(shortcuts.CONNECT)
125-
// })
126-
// globalShortcut.register(shortcuts.DISCONNECT, () => {
127-
// console.log('Disconnect from Board')
128-
// shortcutAction(shortcuts.DISCONNECT)
129-
// }),
130-
// globalShortcut.register('CommandOrControl+K', () => {
131-
// console.log('Clear Terminal')
132-
// shortcutAction('K')
133-
// }),
134-
// // Future: Toggle REPL Panel
135-
// // globalShortcut.register('CommandOrControl+T', () => {
136-
// // console.log('Toggle Terminal')
137-
// // shortcutAction('T')
138-
// // }),
139-
// globalShortcut.register('Escape', () => {
140-
// shortcutAction('ESC')
141-
// })
14295
}
14396

14497
app.on('ready', () => {

preload.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path')
44
const shortcuts = require('./backend/shortcuts.js').global
55
const MicroPython = require('micropython.js')
66
const { emit, platform } = require('process')
7-
// const { platform } = requireprocess.platform
7+
88
const board = new MicroPython()
99
board.chunk_size = 192
1010
board.chunk_sleep = 200
@@ -159,18 +159,7 @@ const Window = {
159159
},
160160
onKeyboardShortcut: (callback, key) => {
161161
ipcRenderer.on('shortcut-cmd', (event, k) => {
162-
163-
164-
// Only trigger callback if terminal is not focused AND we're in editor view
165-
// This has been deemed unnecessary since there are no real conflicts with the terminal
166-
// The REPL shortcuts Ctrl+a|b|c|d are not used as application shortcuts and will
167-
// only be triggered when the user has focused the REPL
168-
// The code is left here for reference
169-
// const activeElement = document.activeElement;
170-
// const isTerminalFocused = activeElement.classList.contains('xterm-helper-textarea');
171-
// if (!isTerminalFocused) {
172162
callback(k);
173-
// }
174163
})
175164
},
176165

0 commit comments

Comments
 (0)
0