Tab works to indent but shift-tab does not de-indent. It seems to just go to another gadget. At one time I removed the keyboard shortcut for tab and in a comment I wrote that it fixed indenting, but yeah it's not working now, the behavior is the exact same whether the keyboard shortcuts are enabled or disabled on the window.
I tried this on the latest 6.21 Beta 9 as well as 6.12 which I was using until I started bughunting this issue.
Code: Select all
EnableExplicit
#Scintilla = 0
#Button = 1
If OpenWindow(0, 0, 0, 600, 400, "Scintilla Shift+Tab Issue", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(#Button, 10,10,100,95, "Button")
ScintillaGadget(#Scintilla, 10, 100, 580, 380, 0)
;RemoveKeyboardShortcut(0, #PB_Shortcut_Tab)
;RemoveKeyboardShortcut(0, #PB_Shortcut_Shift | #PB_Shortcut_Tab)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf