## 🐛 Bug Report The code formatting feature using keyboard shortcuts does not work as expected on macOS when using the Firefox browser. ## To Reproduce 1. Go to any problem. 2. Enter any code in the right panel under </>code heading 3. Attempt to format the code using the shortcut (Option + Shift + F) 4. The cursor goes to the first line and disrupts the first line as shown in the snapshot. <img width="560" alt="Image" src="https://github.com/user-attachments/assets/55b35270-8527-4242-b9a6-7809aaaf3763" /> However, the button to format the code works fine ## Expected behavior Formatted code should display correctly, either inline or in a code block. <img width="560" alt="Image" src="https://github.com/user-attachments/assets/f3c975b0-ba55-4046-94bf-b9257b06af67" /> ## Your Environment 1. **OS**: macOS (Apple M3) 2. **Firefox** 139.0.1 (aarch64)