Project

General

Profile

Support #1329

Prevent "Back"-Navigation

Added by Max Quatember about 10 years ago. Updated about 10 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/19/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi all!

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.

Best regards,

Max Quatember

#1

Updated by Koen Deforche about 10 years ago

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey,

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 ?

Regards,

koen

#2

Updated by Max Quatember about 10 years ago

Hi Koen!

Thanks for your quick answer, I'll work around it.

Closed ;-)

Best regards,

Max

Also available in: Atom PDF