Keyboard Shortcut to Fill on Opaque Pixels
Press Alt Shift Backspace (Mac: Option Shift Delete) to fill with the foreground color on only opaque pixels and not transparent pixels. Or Press Ctrl Shift Backspace (Mac: Command Shift Delete) to fill with the background color on opaque pixels.