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

Mac OSX specific forum
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

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

Post 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
Last edited by Kukulkan on Mon Sep 29, 2014 8:40 am, edited 1 time in total.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

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

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
Kukulkan
Addict
Addict
Posts: 1415
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

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

Post by Kukulkan »

I just tested this and you are right. Shame on me :-(

Thanks,

Kukulkan
Post Reply