MacOS: Keyboard beep at FullScreen

All bugs related to the 3D engine
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

MacOS: Keyboard beep at FullScreen

Post by mk-soft »

When using keyboard control commands in FullScreen, the beep always occurs.

Example PitchYaw.pb
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Re: MacOS: Keyboard beep at FullScreen

Post by skinkairewalker »

User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MacOS: Keyboard beep at FullScreen

Post by mk-soft »

Yes :cry:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Re: MacOS: Keyboard beep at FullScreen

Post by skinkairewalker »

is it the same principle that is acting in the webview?

viewtopic.php?t=81617
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Re: MacOS: Keyboard beep at FullScreen

Post by skinkairewalker »

prevent the beep using this : viewtopic.php?p=453973&hilit=keyboard+beep#p453973

precisely, using this code:

Code: Select all

ProcedureC PerformKeyEquivalent(Sender, sel, event)
  
  Static lastEvent
  Protected currentevent = event
   Protected result = #YES  
   If currentEvent = lastEvent : ProcedureReturn result : EndIf
   lastEvent = currentEvent

;    If currentEvent
;       Select CocoaMessage(0, currentEvent, "type")
;          Case #NSKeyDown
;             Debug "KeyDown : keyCode = " + CocoaMessage(0, currentEvent, "keyCode")
;             Define Long = CocoaMessage(0, currentEvent, "characters")
;             CocoaMessage(@Long, Long, "UTF8String")
;             Debug "KeyDown : keyChar = " + Asc(PeekS(Long, -1, #PB_UTF8))
;          
;          Case #NSKeyUp
;             Debug "KeyUp : keyCode = " + CocoaMessage(0, currentEvent, "keyCode")
;          
;      ;    Case #NSFlagsChanged ; SHIFT, CMD, ALT, CTRL, CAPS
;      ;       Debug "Flags : " + Bin(CocoaMessage(0, currentEvent, "modifierFlags"))
;          
;       EndSelect
;     EndIf
  
  ProcedureReturn #NO 
EndProcedure
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

Re: MacOS: Keyboard beep at FullScreen

Post by skinkairewalker »

but that led to another problem...
now operating system shortcuts are activated, for example : CTRL + DOWN or CTRL + UP all ( these 2 commands open all open windows on the desktop )
Post Reply