projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Affichage du HID dans l'application d'analyse des logs.
[minwii.git]
/
src
/
minwii
/
widgets
/
songfilebrowser.py
diff --git
a/src/minwii/widgets/songfilebrowser.py
b/src/minwii/widgets/songfilebrowser.py
index
6117218
..
8dd4821
100755
(executable)
--- a/
src/minwii/widgets/songfilebrowser.py
+++ b/
src/minwii/widgets/songfilebrowser.py
@@
-7,6
+7,7
@@
$URL$
"""
import pygame
"""
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
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()
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
# utils