From 0f32b35e0000b7cd4abd75773477a4b67c5c4ac4 Mon Sep 17 00:00:00 2001 From: Ed L Date: Thu, 22 Nov 2012 13:15:21 -0500 Subject: [PATCH] Changed bezel hotkeys so that "Enter" pastes and "Return" just changes the stack position --- AppController.m | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/AppController.m b/AppController.m index 838b47e..8596110 100755 --- a/AppController.m +++ b/AppController.m @@ -261,6 +261,17 @@ } } +- (void)changeStack +{ + if ( [clippingStore jcListCount] > stackPosition ) { + [self pasteIndex: stackPosition]; + [self performSelector:@selector(hideApp) withObject:nil afterDelay:0.2]; + } else { + [self performSelector:@selector(hideApp) withObject:nil afterDelay:0.2]; + } +} + + - (void)pasteIndex:(int) position { [self addClipToPasteboardFromCount:position]; @@ -344,9 +355,12 @@ case 0x1B: [self hideApp]; break; - case 0x3: case 0xD: // Enter or Return + case 0xD: // Enter or Return [self pasteFromStack]; break; + case 0x3: + [self changeStack]; + break; case 0x2C: // Comma if ( modifiers & NSCommandKeyMask ) { [self showPreferencePanel:nil];