Hi, All
Happy NY 2025 !
When i use CTRL and SHIFT with KeyPressedListener - shortcuts of the Menu (Ctrl+O, Ctrl+N - "javafx.scene.input.KeyCombination") stopped to work (initially were OK).
KeyPressedListener is used on several B4XPages, i have to syncronize the states from other pages to Main:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Possible to combine working Menu and pages?
			
			Happy NY 2025 !
When i use CTRL and SHIFT with KeyPressedListener - shortcuts of the Menu (Ctrl+O, Ctrl+N - "javafx.scene.input.KeyCombination") stopped to work (initially were OK).
KeyPressedListener is used on several B4XPages, i have to syncronize the states from other pages to Main:
			
				B4X:
			
		
		
		Private Sub KeyPressed_Event(e As Event)
    Dim KE As Reflector
    KE.Target = e 'e is a KeyEvent instance
    Dim KeyCode As String = KE.RunMethod("getCode")
    Dim EventType As String = KE.RunMethod("getEventType")
 
 
    Select EventType
   ...
    End Select
    Main.KEY_CTRL_PRESSED = KEY_CTRL_PRESSED
    Main.KEY_SHIFT_PRESSED = KEY_SHIFT_PRESSED
    e.Consume
End SubPossible to combine working Menu and pages?
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
	
								
							
							 
				 
 
		 
 
		 
 
		 
						
					 
 
		 
 
		 
 
		 
 
		 
 
		