When i write cards on Anki, I have to press “caps-lock” twice to be able to write a captial letter. With anything else, like when writing something in the search bar, I don´t have this problem. Does anyone know the cause/ how to change it?
If you mean that you have to press a key twice after enabling Caps Lock for the letter to appear, this is a known bug:
opened 09:12AM - 18 Jan 25 UTC
This is not reproducible in a simple hello-world PyQt app, so it seems to be som… ething specific about our editing environment or app that is triggering this. More experimentation is required.
Working hello-world:
```diff
diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py
index eca04b261..cb5aa863b 100644
--- a/qt/aqt/__init__.py
+++ b/qt/aqt/__init__.py
@@ -567,7 +567,39 @@ def write_profile_results() -> None:
profiler.dump_stats(profile)
+
+class MainWindow(QMainWindow):
+ def __init__(self):
+ super().__init__()
+ self.setWindowTitle("Hello, World! - PyQtWebEngine")
+ self.resize(800, 600)
+
+ # Create a QWebEngineView widget
+ self.browser = QWebEngineView()
+
+ # Set the HTML content for the browser
+ html_content = """
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Hello, World!</title>
+ </head>
+ <body>
+ <h1 style="text-align: center; margin-top: 20%;">Hello, World!</h1>
+ <div style="border: 1px solid black;" contenteditable=true>type here</div>
+ </body>
+ </html>
+ """
+ self.browser.setHtml(html_content)
+
+ # Set the browser as the central widget
+ self.setCentralWidget(self.browser)
+
def run() -> None:
+ app = QApplication(sys.argv)
+ window = MainWindow()
+ window.show()
+ sys.exit(app.exec())
print("Preparing to run...")
try:
_run()
```
There is no fix at the moment. You’ll just have to use a workaround. For example:
Use the Shift key instead of Caps Lock.
Press the next letter key twice after toggling on Caps Lock.
The bug still seems to be present in 26.05b1.