Skip to content

Commit

Permalink
[fix] Shortcuts for color picker 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferllings committed Sep 27, 2023
1 parent 6ecdb38 commit 43677c1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/browsers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,7 @@ module.exports = (dirname, store) => {
// Open the DevTools.
// mainWindow.webContents.openDevTools()

globalShortcut.register('CommandOrControl+D', () => {
const eyeDropper = new EyeDropper();
// Ouvrez l'API EyeDropper en réponse au raccourci clavier
eyeDropper.open()
.then((result) => {
const pickedColor = result.color;
console.log('Couleur sélectionnée :', pickedColor);
// Utilisez "pickedColor" comme nécessaire
})
.catch((error) => {
console.error('Erreur lors de l\'ouverture de l\'API EyeDropper :', error);
});
});


mainWindow.on('close', function () {
if (mainWindow) {
Expand Down

0 comments on commit 43677c1

Please sign in to comment.