diff options
author | rowanbeentje <rowan@beent.je> | 2009-03-31 09:40:01 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-03-31 09:40:01 +0000 |
commit | 0574a0b340b92ff5038bc4340b283c13ce513c1c (patch) | |
tree | 5e80cc24737dd888b58d9b6030f6e9a7f9a42a02 /Source | |
parent | 6289788fd68bec01c4da1d838b15efbf91e35b39 (diff) | |
download | sequelpro-0574a0b340b92ff5038bc4340b283c13ce513c1c.tar.gz sequelpro-0574a0b340b92ff5038bc4340b283c13ce513c1c.tar.bz2 sequelpro-0574a0b340b92ff5038bc4340b283c13ce513c1c.zip |
- Fix behaviour of the enter key to run the query again - broken in r451
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMTextView.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index a09b3125..7779ba43 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -46,8 +46,8 @@ YY_BUFFER_STATE yy_scan_string (const char *); - (void) doCommandBySelector:(SEL)aSelector { - // Handle newlines, adding any indentation found on the current line to the new line. - if (aSelector == @selector(insertNewline:)) { + // Handle newlines, adding any indentation found on the current line to the new line - ignoring the enter key. + if (aSelector == @selector(insertNewline:) && [[NSApp currentEvent] keyCode] != 0x4C) { NSString *textViewString = [[self textStorage] string]; NSString *currentLine, *indentString = nil; NSScanner *whitespaceScanner; |