Scratch3-Dev-Tools icon indicating copy to clipboard operation
Scratch3-Dev-Tools copied to clipboard

Support cmd key for macOS

Open moeenio opened this issue 5 years ago • 17 comments

Would be great that the keyboard shortcut to open the find menu would work with the ⌘ (Command) key on macOS.

moeenio avatar Feb 21 '20 13:02 moeenio

@griffpatch would be a one line change inject3.js line 798 if (document.URL.indexOf('editor') > 0 && e.key === 'f' && e.ctrlKey) { to if (document.URL.indexOf('editor') > 0 && e.key === 'f' && (e.ctrlKey || e.metaKey)) {

This may also trigger on windows key + f on windows machines, I don't have one to test on.

PortPixel avatar May 10 '20 18:05 PortPixel

@PortPixel @griffpatch The windows + f could also be eliminated using navigator.platform, given that that is allowed in chrome extensions. I haven't done much with chrome extensions, so I'm not completely sure if that would work, but I think it should.

AmazingMech2418 avatar Jun 25 '20 22:06 AmazingMech2418

@griffpatch please can you support macos key because the middle click doesn't mave on mac mouse and i can't use command+f or command+space to use something

scratchusernamemrtbts avatar Jul 12 '20 08:07 scratchusernamemrtbts

Really :/ I thought the meta key was the max special key... I hoped that what I had coded would work.

On Sun, 12 Jul 2020, 09:14 meepooh, [email protected] wrote:

@griffpatch https://github.com/griffpatch please can you support macos key because the middle click doesn't mave on mac mouse and i can't use command+f or command+space to use something

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/griffpatch/Scratch3-Dev-Tools/issues/14#issuecomment-657189828, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTM3PWSL4ZU7KQ4UJIRQ7TR3FWG7ANCNFSM4KZC26EA .

griffpatch avatar Jul 12 '20 13:07 griffpatch

@griffpatch Works for me MacOS 10.15.4 (19E287)

@scratchusernamemrtbts maybe you need to update the extension?

PortPixel avatar Jul 12 '20 14:07 PortPixel

@griffpatch Works for me MacOS 10.15.4 (19E287)

@scratchusernamemrtbts maybe you need to update the extension?

thanks

scratchusernamemrtbts avatar Jul 14 '20 14:07 scratchusernamemrtbts

@scratchusernamemrtbts Actually, Command+M minimizes the current window, the equivalent of clicking the yellow "-" symbol at the top left corner of most windows. As for the original suggestion, in my opinion Control-space works fine for me. =/

Explosion-Scratch avatar Jul 16 '20 02:07 Explosion-Scratch

@scratchusernamemrtbts Actually, Command+M minimizes the current window, the equivalent of clicking the yellow "-" symbol at the top left corner of most windows. As for the original suggestion, in my opinion Control-space works fine for me. =/

Oh I forgot.

scratchusernamemrtbts avatar Jul 18 '20 03:07 scratchusernamemrtbts

@griffpatch Works for me MacOS 10.15.4 (19E287) @scratchusernamemrtbts maybe you need to update the extension?

thanks EDIT: it works but when i press cmd+space it open the macos spot light search maybe you could add another key like cmd+d I’m not sure they already have this shortcut in macOS I’m replying from iPad

i solve it already by changing the spotlight search hotkey to shift+cmd+space

scratchusernamemrtbts avatar Jul 20 '20 10:07 scratchusernamemrtbts

@scratchusermrtbts Command and D bookmarks the current browser page on Mac.

Explosion-Scratch avatar Jul 20 '20 12:07 Explosion-Scratch

@scratchusermrtbts Command and D bookmarks the current browser page on Mac.

i solve it now here

scratchusernamemrtbts avatar Jul 20 '20 12:07 scratchusernamemrtbts

now there is onne thing i still can't use ภาพหน้าจอ 2563-07-25 เวลา 17 05 38 my apple mouse don't have a middle click button can you add the cmd+space and ctrl+space for this feature too?

Or you can just make this menu bar

scratchusernamemrtbts avatar Jul 25 '20 10:07 scratchusernamemrtbts

my apple mouse don't have a middle click button

Try three-finger tap? Or pinching the sides of the mouse?

moeenio avatar Jul 25 '20 11:07 moeenio

my apple mouse don't have a middle click button

Try three-finger tap? Or pinching the sides of the mouse?

Ok I'll try. But how do you pinch the side of the mouse

scratchusernamemrtbts avatar Jul 26 '20 12:07 scratchusernamemrtbts

I also don't have middled click. I just use the built in trackpad on my mac.

Explosion-Scratch avatar Jul 26 '20 12:07 Explosion-Scratch

You can have middle click with three thingers on a trackpad with an app called MiddleClick :)

moeenio avatar Jul 26 '20 14:07 moeenio

I also don't have middled click. I just use the built in trackpad on my mac.

I use an iMac so I don't have a trackpad

scratchusernamemrtbts avatar Jul 27 '20 01:07 scratchusernamemrtbts