Alternative key ' for console.
This commit is contained in:
+1
-1
@@ -627,7 +627,7 @@ class WickedQuest:
|
|||||||
altPressed = mods & pygame.KMOD_ALT
|
altPressed = mods & pygame.KMOD_ALT
|
||||||
|
|
||||||
# Console activation with grave accent key - only in story mode
|
# Console activation with grave accent key - only in story mode
|
||||||
if event.key == pygame.K_BACKQUOTE: # Grave accent key (`)
|
if event.key in (pygame.K_BACKQUOTE, pygame.K_QUOTE): # Grave accent key (`)
|
||||||
# Open console (only in story mode, not survival)
|
# Open console (only in story mode, not survival)
|
||||||
if hasattr(self, 'currentLevel') and self.currentLevel and self.currentLevel.levelId != 999:
|
if hasattr(self, 'currentLevel') and self.currentLevel and self.currentLevel.levelId != 999:
|
||||||
self.open_console()
|
self.open_console()
|
||||||
|
|||||||
Reference in New Issue
Block a user