I have an applcation which sometimes shows a dialog with readonly form-widgets.
If, at this situation, the "backspace"-key is pressed the browser navigates "back".
Maybe you can give me a hint to avoid this.
I tried "globalKeyPressed().preventDefaultAction()" but this had no affect.
Updated by Koen Deforche over 11 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
I'm not sure whether you can override this browser behaviour --- I sometimes am caught by it too on sites like GMail.
Perhaps you could work around it with a hidden (or absolutely positioned off-screen) WLineEdit that you give focus ?