EDIT: bah, I deleted it. Lets try that again:
You could move the primary/negative key checks to the top, then that way they will get tested first. That way if someone has KEY_NUMPAD1 bound as their primary it would still work and they could still use KEY_1 to change guilds.
Lua Code:
local function FCOGuildBankQuickSelect_HandleKeyboardEvents(self, key, hide)
-- Convert keycode to actual key so we can compare it to our primary/negative keys
if GetKeyName(key) == DIALOG_PRIMARY then
ZO_Dialogs_ButtonKeybindPressed("DIALOG_PRIMARY")
elseif GetKeyName(key) == DIALOG_NEGATIVE then
ZO_Dialogs_ButtonKeybindPressed("DIALOG_NEGATIVE")
end
...
end