mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Allow toggling fullscreen without restart and add keybind (#14714)
This commit is contained in:
		@@ -723,6 +723,11 @@ local function eventhandler(event)
 | 
			
		||||
		mm_game_theme.set_engine(true)
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
	if event == "FullscreenChange" then
 | 
			
		||||
		-- Refresh the formspec to keep the fullscreen checkbox up to date.
 | 
			
		||||
		ui.update()
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	return false
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -2399,6 +2399,9 @@ keymap_minimap (Minimap key) key KEY_KEY_V
 | 
			
		||||
#    Key for taking screenshots.
 | 
			
		||||
keymap_screenshot (Screenshot) key KEY_F12
 | 
			
		||||
 | 
			
		||||
#    Key for toggling fullscreen mode.
 | 
			
		||||
keymap_fullscreen (Fullscreen key) key KEY_F11
 | 
			
		||||
 | 
			
		||||
#    Key for dropping the currently selected item.
 | 
			
		||||
keymap_drop (Drop item key) key KEY_KEY_Q
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user