ShortCuts: WebGadget with #PB_Web_Edge
Posted: Sat Jan 25, 2025 1:44 pm
I create two windows, each with a webgadget. One with #PB_Web_Edge and one without.
I then assign ShortCuts.
The window with #PB_Web_Edge does not recognize the shortcut.
If both webgadgets are used without #PB_Web_Edge, both shortcuts are recognized. If I then set the focus on the webgadget in the second window with the mouse, the ShortCut is no longer recognized here either.
Ingo
I then assign ShortCuts.
The window with #PB_Web_Edge does not recognize the shortcut.
If both webgadgets are used without #PB_Web_Edge, both shortcuts are recognized. If I then set the focus on the webgadget in the second window with the mouse, the ShortCut is no longer recognized here either.
Code: Select all
OpenWindow(0, 200, 200, 200, 100, "Press Ctrl+D")
WebGadget(0, 5,5,190,90,"")
OpenWindow(1, 400, 400, 200, 100, "Press Ctrl+A")
WebGadget(1, 5,5,190,90,"",#PB_Web_Edge)
AddKeyboardShortcut(0, #PB_Shortcut_Control | #PB_Shortcut_D, 100)
AddKeyboardShortcut(1, #PB_Shortcut_Control | #PB_Shortcut_A, 200)
Repeat
Select WaitWindowEvent()
Case #PB_Event_Menu
Select EventMenu()
Case 100 : Debug "Ctrl+D"
Case 200 : Debug "Ctrl+A"
EndSelect
Case #PB_Event_CloseWindow
End
EndSelect
ForEver