[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:34:58 CEST 2010
vlc/vlc-1.1 | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Wed Jun 16 00:05:08 2010 +0200| [4fae5afad6bad951f75d367a2047707f7315fddf] | 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>
(cherry picked from commit d9a02c44cf5498976fa3719f622199e3e76e6121)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=4fae5afad6bad951f75d367a2047707f7315fddf
---
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