X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/eb54dac20092c54228bdd9f227c7ad163bca382d..9df37cf5c91975214a341a58e703c5b8f826ab45:/src/minwii/widgets/songfilebrowser.py?ds=inline diff --git a/src/minwii/widgets/songfilebrowser.py b/src/minwii/widgets/songfilebrowser.py index 6117218..8dd4821 100755 --- a/src/minwii/widgets/songfilebrowser.py +++ b/src/minwii/widgets/songfilebrowser.py @@ -7,6 +7,7 @@ $URL$ """ import pygame +from pygame.locals import K_RETURN from pgu.gui import FileDialog import pgu.gui.basic as basic import pgu.gui.input as input @@ -265,6 +266,11 @@ class FileOpenDialog(FileDialog): self._button_okay_clicked_(None) else : self._last_time_click = pygame.time.get_ticks() + + def event(self, e) : + FileDialog.event(self, e) + if e.type == KEYDOWN and e.key == K_RETURN : + self._button_okay_clicked_(None) # utils