-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Paste operation in fields #6
Comments
Actually, electron usage on macOS requires to manually set copy/paste keybindings. However, there is no macOS here so i am not aware of this issue, thanks for pointing it out. Can you please help me to try this tweak and tell me if it works on macOS? on main.js: const menu = require('electron') and then change app.on('ready', createWindow) to app.on('ready', () => {
createWindow()
if (process.platform === 'darwin') {
var template = [{
label: 'FromScratch',
submenu: [{
label: 'Quit',
accelerator: 'CmdOrCtrl+Q',
click: function() { app.quit(); }
}]
}, {
label: 'Edit',
submenu: [{
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
selector: 'undo:'
}, {
label: 'Redo',
accelerator: 'Shift+CmdOrCtrl+Z',
selector: 'redo:'
}, {
type: 'separator'
}, {
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
selector: 'cut:'
}, {
label: 'Copy',
accelerator: 'CmdOrCtrl+C',
selector: 'copy:'
}, {
label: 'Paste',
accelerator: 'CmdOrCtrl+V',
selector: 'paste:'
}, {
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
selector: 'selectAll:'
}]
}];
var osxMenu = menu.buildFromTemplate(template);
menu.setApplicationMenu(osxMenu);
}
}) |
Thanks. Works like charm 👍 . Just a small edit; need to access menu as 'electron.Menu' from here I've seen some other bugs with macOS which i'l report later. For now we are good. |
Great!, thank you. Can't wait for your report. |
Couple of quick spots;
|
Yes, i haven't made parser for comments yet. The error on interact, did you fill the 'interact amount' field with non-number character? I forgot to make it only receive number input. |
Those bugs have been fixed, please let me know if you found another bug. |
Environment - macOS, Is this currently supported? Links, Location Ids, Tags etc need to typed in, can't copy + paste.
Thanks for building this cool utility
The text was updated successfully, but these errors were encountered: