It is currently Mon Jul 16, 2018 9:30 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PB5.62 - AddKeyboardShortcut Bug
PostPosted: Sat Apr 14, 2018 10:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 340
Location: Canada
Code:
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : AddKeyboardShortcut Bug
; File Name : AddKeyboardShortcut Bug.pb
; File version: 1.0.0
; Programming : BUG DEMO
; Programmed by : StarBootics
; Date : 14-04-2018
; Last Update : 14-04-2018
; PureBasic code : V5.62 x64
; Platform : Ubuntu 17.10 x64
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Bug Description
;
; Apparently if we create F1 keyboard shortcut we
; can't create the CTRL + F1 keyboard shortcut.
;
; But CTRL + F2 work as expected.
;
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

If OpenWindow(0, 0, 0, 220+52, 100*2, "Exemple...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
  ButtonGadget  (1, 10, 60, 200, 30, "Fermer")
  AddKeyboardShortcut(0, #PB_Shortcut_F1, 15)
  AddKeyboardShortcut(0, #PB_Shortcut_Control | #PB_Shortcut_F1, 16)
  AddKeyboardShortcut(0, #PB_Shortcut_Control | #PB_Shortcut_F2, 17)
 
  Repeat
    Event = WaitWindowEvent()
   
    Select Event
       
      Case #PB_Event_Menu
       
        Select EventMenu()
          Case 15
            Debug "F1"
           
          Case 16
            Debug "CTRL + F1" ; We should see that one if we hold CTRL + F1 keys, but it's not the case
           
          Case 17
            Debug "CTRL + F2"   
           
        EndSelect
       
      Case #PB_Event_Gadget
        Select EventGadget()
          Case 1
            CloseWindow(0)
            End 
        EndSelect
       
    EndSelect
  Until Event = #PB_Event_CloseWindow
EndIf

; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: PB5.62 - AddKeyboardShortcut Bug
PostPosted: Sun Apr 15, 2018 12:18 am 
Offline
User
User

Joined: Mon Aug 13, 2012 7:26 am
Posts: 24
Just confirming that this works in Windows, so it is just a Linux bug as you correctly posted.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye