Forum > Android

LAMW: problem with KEYCODE_BACK

(1/1)

schumi:
hi,
strange problem after upgrade to lazarus 3.4 with FpCupDeluxe, last LAMW, gradle 8.11.1, ndk 21e :
when I press the back button on any form the app closes

I have solved it with this code on SpecialKeyDown

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---mute:= True;if keyCode = 4 then  //KEYCODE_BACK  begin    Close ;    frmMain.Show ;  end; 

Navigation

[0] Message Index

Go to full version