problem in Webview with "Toogle Key sounds" Or "Key Sounds"
Posted: Fri May 12, 2023 12:44 am
when I create a webview on my macbook, when I press keys on the keyboard, it keeps playing a dry sound until I stop pressing the keys, what could it be?
I think it calls ?: "Key Clicks" or "Toogle Key Sounds", on windows it is found in the accessibility section
I recorded a video : https://youtube.com/shorts/zPjMay06uIU
example :
Does anyone know how to solve this without having to disable it in the operating system settings?
I think it calls ?: "Key Clicks" or "Toogle Key Sounds", on windows it is found in the accessibility section
I recorded a video : https://youtube.com/shorts/zPjMay06uIU
example :
Code: Select all
If OpenWindow(0, 0, 0, 960, 590, Webview MacOs", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_Invisible)
WebGadget(0, 0, 0, 960, 590, "https://soqueto.com/game3/")
CocoaMessage(0, CocoaMessage(0, GadgetID(0), "preferences"), "setJavaScriptEnabled:", #YES)
CocoaMessage(0, CocoaMessage(0, GadgetID(0), "preferences"), "setWebSecurityEnabled:", #NO)
Define scrollView = CocoaMessage(0, GadgetID(0), "enclosingScrollView")
CocoaMessage(@test, scrollView, "setVerticalScrollElasticity:", #NSScrollElasticityNone)
CocoaMessage(@test, scrollView, "setHorizontalScrollElasticity:", #NSScrollElasticityNone)
SetGadgetAttribute(0, #PB_Web_BlockPopupMenu, #True)
SetGadgetAttribute(0, #PB_Web_BlockPopups, #True)
StickyWindow(0, #True) : HideWindow(0, #False)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf