preventing modal Ok and Cancel buttons from being clicked while modal inputs are active (this partially addresses an issue on ios in which hitting Cancel or Ok while keyboard is active prevents modal from removing itself from the screen)