INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can't map Command-g  (Read 1007 times)

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Can't map Command-g
« on: October 13, 2022, 06:57:53 pm »

In MC30.0.18 there was a new command added to "clear search box".  It's MCC 22042.  I mapped it to command-g (by using "Ctrl-G" in the Resource.xml file).  That worked, but 22042 was doing some weird stuff.  Matt changed it so it works really well now.  I just downloaded MC30.0.20 and remapped that key again.

No go.  I thought the MCC was broken, but then I tried another key and it worked.  I currently have it mapped to Command-h (Ctrl;H).

Any idea why Command-G is no longer available?

Thanks,
Brian.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Can't map Command-g
« Reply #1 on: October 14, 2022, 10:09:25 am »

In MC30.0.18 there was a new command added to "clear search box".  It's MCC 22042.  I mapped it to command-g (by using "Ctrl-G" in the Resource.xml file).  That worked, but 22042 was doing some weird stuff.  Matt changed it so it works really well now.  I just downloaded MC30.0.20 and remapped that key again.

No go.  I thought the MCC was broken, but then I tried another key and it worked.  I currently have it mapped to Command-h (Ctrl;H).

Any idea why Command-G is no longer available?

Thanks,
Brian.
It's possible I broke that. I was trying to see if a missing alt command could be implemented. Check it again the next build.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Can't map Command-g
« Reply #2 on: October 14, 2022, 01:33:53 pm »

Thanks very much.  I'll try again with the next build.

Brian.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Can't map Command-g
« Reply #3 on: October 14, 2022, 09:00:28 pm »

I'm guessing the fix didn't make it into MC30.0.21 that was released today.  I just tried "Ctrl;G" again and it's the same as before. 

No big deal.  I've got a workaround until whenever it gets changed or even indefinitely.

Thanks,
Brian.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9119
Re: Can't map Command-g
« Reply #4 on: October 14, 2022, 11:52:22 pm »

On Windows, Ctrl+G collapses the tree. Is that the same on a Mac? Could your choice be clashing with that?

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Can't map Command-g
« Reply #5 on: October 15, 2022, 06:44:45 am »

I would have thought so for SURE because I've seen that behavior before I tried mapping it.  But in MC30.0.18, I was able to map Ctrl;G successfully.  At MC30.0.20 and 21 it no longer works.

Brian.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Can't map Command-g
« Reply #6 on: October 20, 2022, 09:50:26 am »

Can you share what you did in the resource file to map it?
Thanks.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Can't map Command-g
« Reply #7 on: October 20, 2022, 11:54:23 am »

This is the relevant part of the file:

Code: [Select]

    <!-- Go to search box -->
    <Entry Key="Ctrl;F" Command="22022" />
    <!-- Clear Search Box -->
    <Entry Key="Ctrl;H" Command="22042" />


As you can see, it's mapped to control-h, which is command-h on Mac.  Previously I had a "G" where the "H" is.

If you need any other details, let me know.  Thanks for taking the time to look.

Brian.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Can't map Command-g
« Reply #8 on: October 20, 2022, 02:24:17 pm »

This is the relevant part of the file:

Code: [Select]

    <!-- Go to search box -->
    <Entry Key="Ctrl;F" Command="22022" />
    <!-- Clear Search Box -->
    <Entry Key="Ctrl;H" Command="22042" />


As you can see, it's mapped to control-h, which is command-h on Mac.  Previously I had a "G" where the "H" is.

If you need any other details, let me know.  Thanks for taking the time to look.

Brian.
Did you remove the entry for Ctrl;G a few lines down below that?
When I do everything works fine.
That Resource.xml gets overwritten on every MC build installed so you need to keep one around and overwrite it each time OR just put a copy in
~/Library/Application Support/Media Center 30/Data/Custom Resources
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Can't map Command-g
« Reply #9 on: October 20, 2022, 02:45:42 pm »

I'm only using the Data/Custom Resources/Resource.xml file.  I don't edit the one that's inside Application package (inside the app).

I just tried it again and got it working using MC30.0.21.

I think know why.  I had done a workaround when it stopped working.  The workaround was to have Alfred convert the Command-g hot key into Command-h.  I had disconnected the two in Alfred for testing, but I didn't *erase* the hotkey capture in Alfred so I think Alfred was "eating the key".

Sorry about any extra effort I put you through.  It does seem to work now in 30.0.21.  Yay!

Brian.
Logged
Pages: [1]   Go Up