Code: Select all
If OpenWindow(1, 100,100,310,510, "My_QUICK_NOTE w/autosave", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_TitleBar)
EditorGadget(1, 5, 5, 270, 500) : AddKeyboardShortcut(1,#PB_Shortcut_Return,2)
Repeat
_mess=WaitWindowEvent()
If _mess=#PB_Event_Menu
which=EventMenu()
If which=2
Debug "Enter was pressed"
EndIf
EndIf
Until _mess=#PB_Event_CloseWindow
EndIf
