Page 1 of 1

[not a bug, solved] Tab does not move focus on buttons etc

Posted: Fri Sep 26, 2014 3:48 pm
by Kukulkan
Hello,

Regarding this code on MacOS (Maverics), the movement of focus is broken:

Code: Select all

If OpenWindow(0, 0, 0, 262, 300, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
  ButtonGadget(1, 10, 40, 200, 20, "Left Button", #PB_Button_Left)
  ButtonGadget(2, 10, 70, 200, 20, "Right Button", #PB_Button_Right)
  ButtonGadget(3, 10,100, 200, 60, "Multiline Button  (längerer Text wird automatisch umgebrochen)", #PB_Button_MultiLine)
  ComboBoxGadget(4, 10,170, 200, 20)
  AddGadgetItem(4, -1, "Test")
  StringGadget(5, 10, 200, 60, 20, "Test 1")
  CheckBoxGadget(6, 10, 230, 60, 20, "Test Checkbox")
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
I cant move away from the string gadget. On Windows and Linux it works.

I'm using PB 5.22 LTS and 5.23 LTS in 32 bit version on MacOS 10.9.4.

Kukulkan

Re: [PB 5.2x LTS] Tab does not move focus on buttons etc

Posted: Fri Sep 26, 2014 4:46 pm
by wilbert
This is not a bug.
You have to turn on "full keyboard access" to be able to focus on a checkbox by keyboard.
http://support.apple.com/kb/PH13833
If you enable this, it works as you expected.

Re: [PB 5.2x LTS] Tab does not move focus on buttons etc

Posted: Mon Sep 29, 2014 8:39 am
by Kukulkan
I just tested this and you are right. Shame on me :-(

Thanks,

Kukulkan