It is forbidden to interrupt in the middle of the prayer, even for Kaddish, Kedushah, or "Barchu." Rather, one should remain silent until the shaliach tzibbur says "Yitbarach" in Kaddish, and in Kedushah until "Yimloch," and in "Barchu" until the congregation answers "Baruch Hashem…". This is the wording of Rashi, of blessed memory, in Sukkah (38b): If he heard and directed his heart to hear, even though he did not answer—he has fulfilled the obligation. And so too for those praying with a congregation when the shaliach tzibbur says Kedushah or "Yehei Shmei Rabba"—they should remain silent in their prayer and listen with intention, and they are as if they answered. And when they finish the Kedushah—they shall return to their prayer. And so too established the Ba'al HaHalachot Gedolot. Thus far his words. And one should not ask: If so, why did they say that one who enters the synagogue and finds the congregation praying, if he is able to start and finish before the shaliach tzibbur reaches Kedushah or "Modim" he should pray, and if not he should not pray, as will be explained in siman 109? And why should he not pray, for can he not remain silent and listen? Rather, certainly if he were to remain silent, his listening would be an interruption of his prayer. However, perhaps even though "one who hears is like one who answers," nevertheless answering is preferable and a mitzvah of the highest caliber. So wrote our teachers the Tosafists there. And in Berakhot (21b) they wrote that Rabbeinu Tam and the Ri disagree on this, for since "one who hears is like one who answers"—it constitutes an interruption when he remains silent. And nevertheless, the people are accustomed to remain silent and listen, and the custom is great. Thus far their words. And the Rosh also investigated this and agreed with Rashi and the Ba'al HaHalachot Gedolot. And the Tur brought the two opinions and did not decide. And Rabbeinu Yonah wrote there that regarding a matter that depends on the pillars of the world—we do not have the power to decide between them. And one who acts like this master—has acted, and like this master—has acted, provided that he directs his heart to Heaven. Thus far his words. And our teacher, the Beit Yosef, in section 7 ruled simply like Rashi, and such is the simple custom.
אסור להפסיק באמצע התפילה, אפילו לקדיש ולקדושה ול"ברכו". אלא ישתוק עד שיאמר שליח הציבור "יתברך" בקדיש, ובקדושה עד "ימלוך", וב"ברכו" עד שיענו הציבור "ברוך ה'…". וזה לשון רש"י ז"ל בסוכה (לח ב): אם שמע וכיון לבו לשמוע, אף על פי שלא ענה – יצא. וכן למתפללין בציבור ושליח ציבור אומר קדושה או "יהא שמיה רבה" – ישתקו בתפילתן וישמעו בכוונה, והרי הן כעונין. וכשיגמרו הקדושה – יחזרו לתפילתן. וכן יסד בה"ג. עד כאן לשונו. ואין לשאול: דאם כן למה אמרו הנכנס לבית הכנסת ומצא ציבור שמתפללין, אם יכול להתחיל ולגמור עד שלא יגיע שליח ציבור לקדושה או ל"מודים" יתפלל, ואם לאו אל יתפלל, כמו שיתבאר בסימן ק"ט? ולמה לא יתפלל, הלא יכול לשתוק ולשמוע? אלא וודאי אם היה שותק היתה שמיעתו הפסקת תפילתו. ומיהו שמא אף על גב דשומע כעונה, מכל מקום עונה עדיף ומצוה מן המובחר. כן כתבו שם רבותינו בעלי התוספות. ובברכות (כא ב) כתבו דרבינו תם ור"י חולקים בזה, דכיון דשומע כעונה – הוי הפסק כששותק. ומכל מקום נהגו העם לשתוק ולשמוע, וגדול המנהג. עד כאן לשונם. והרא"ש גם כן חקר בזה והסכים לרש"י ובה"ג. והטור הביא שני הדעות ולא הכריע. ורבינו יונה כתב שם דדבר שתלוי בעמודי עולם – אין לנו כוח להכריע ביניהם. ודעבד כמר – עביד, וכמר – עביד, ובלבד שיכוין לבו לשמים. עד כאן לשונו. ורבינו הבית יוסף בסעיף ז פסק בפשיטות כרש"י, וכן המנהג הפשוט.