[vlc-commits] commit: macosx_dialog_provider: set the usual keys equivalent to cancel or validate a dialog. ( Sebastien Zwickert )
git at videolan.org
git at videolan.org
Wed Jun 16 18:27:57 CEST 2010
vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Wed Jun 16 00:05:08 2010 +0200| [d9a02c44cf5498976fa3719f622199e3e76e6121] | committer: Jean-Baptiste Kempf
macosx_dialog_provider: set the usual keys equivalent to cancel or validate a dialog.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9a02c44cf5498976fa3719f622199e3e76e6121
---
modules/gui/macosx_dialog_provider/VLCLoginPanel.m | 2 ++
.../gui/macosx_dialog_provider/VLCProgressPanel.m | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx_dialog_provider/VLCLoginPanel.m b/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
index 856a703..3658665 100644
--- a/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
+++ b/modules/gui/macosx_dialog_provider/VLCLoginPanel.m
@@ -55,6 +55,7 @@
[_cancelButton setBordered:YES];
[_cancelButton setTarget:self];
[_cancelButton setAction:@selector(buttonAction:)];
+ [_cancelButton setKeyEquivalent:@"\e"] ; // escape key
[ourContentView addSubview:_cancelButton];
s_rc.origin.x = 383;
@@ -68,6 +69,7 @@
[_okayButton setBordered:YES];
[_okayButton setTarget:self];
[_okayButton setAction:@selector(buttonAction:)];
+ [_okayButton setKeyEquivalent:@"\r"] ; // enter key
[ourContentView addSubview:_okayButton];
s_rc.origin.x = 94;
diff --git a/modules/gui/macosx_dialog_provider/VLCProgressPanel.m b/modules/gui/macosx_dialog_provider/VLCProgressPanel.m
index 10853e3..89cbd34 100644
--- a/modules/gui/macosx_dialog_provider/VLCProgressPanel.m
+++ b/modules/gui/macosx_dialog_provider/VLCProgressPanel.m
@@ -55,6 +55,7 @@
[_cancelButton setBordered:YES];
[_cancelButton setTarget:self];
[_cancelButton setAction:@selector(cancelDialog:)];
+ [_cancelButton setKeyEquivalent:@"\e"] ; // escape key
[ourContentView addSubview:_cancelButton];
s_rc.origin.x = 89;
More information about the vlc-commits
mailing list