Re-mapping shortcuts in a chrome tab

Hi KM's!

I would like to remap gmail's keyboard shortcuts. For example Shift+3 is "delete a message", I would like for it to be cmd+delete.

For this I would need to trigger the action only when gmail is active in a chrome tab, is this possible?

I have tried searching, but not coming up with much. Thank you in advance!

Hey Martin,

It's easy to map 3 to Delete.

See:

The big problem is limiting that to the Gmail Tab in Google Chrome.

It's easy to test for the Gmail Tab using one of the Chrome text-tokens.

You can use:

But – returning normal function to the Delete key chord can be very problematic if it is used for other purposes in the given app.

-Chris