message: Make DescriptionLbl is editable after seleting the TE (mac)
diff: @@ -130,6 +130,8 @@ NSString *kInactiveTimerColor = @"#999999";
  [self.autoCompleteInput.autocompleteTableView setTarget:self];
  [self.autoCompleteInput.autocompleteTableView setAction:@selector(performClick:)];
  self.autoCompleteInput.responderDelegate = self.autocompleteContainerView;
  +
  + self.descriptionLabel.delegate = self;
  }
  - (void)viewDidAppear
  @@ -394,6 +396,12 @@ NSString *kInactiveTimerColor = @"#999999";
  self.autoCompleteInput.stringValue = self.time_entry.Description;
  + // Make descriptionLabel is editable and focus
  + self.descriptionLabel.editable = YES;
  + self.descriptionLabel.stringValue = self.time_entry.Description;
  + self.displayMode = DisplayModeTimer;
  + [self.view.window makeFirstResponder:self.descriptionLabel];
  +
  // Display project name
  [self renderProjectLabelWithViewItem:self.time_entry];
  @@ -415,6 +423,12 @@ NSString *kInactiveTimerColor = @"#999999";
  // NSLog(@"Filter: %@", [field stringValue]);
  return;
  }
  +
  + if (aNotification.object == self.descriptionLabel)
  + {
  + self.autoCompleteInput.stringValue = self.descriptionLabel.stringValue;
  + return;
  + }
  }
  - (void)timerFired:(NSTimer *)timer
  @@ -523,9 +537,8 @@ NSString *kInactiveTimerColor = @"#999999";
  return;
  }
  [self fillEntryFromAutoComplete:item];
  - [self.autoCompleteInput.window makeFirstResponder:self.autoCompleteInput];
  - NSRange tRange = [[self.autoCompleteInput currentEditor] selectedRange];
  - [[self.autoCompleteInput currentEditor] setSelectedRange:NSMakeRange(tRange.length, 0)];
  + NSRange tRange = [[self.descriptionLabel currentEditor] selectedRange];
  + [[self.descriptionLabel currentEditor] setSelectedRange:NSMakeRange(tRange.length, 0)];
  [self.autoCompleteInput resetTable];
  [self.liteAutocompleteDataSource clearFilter];
  }
  @@ -534,6 +547,21 @@ NSString *kInactiveTimerColor = @"#999999";
  {
  BOOL retval = NO;
  + if (control == self.descriptionLabel)
  + {
  + if (commandSelector == @selector(insertNewline:))
  + {
  + self.descriptionLabel.editable = NO;
  + [self startButtonClicked:nil];
  + [self.autoCompleteInput resetTable];
  + [self.liteAutocompleteDataSource clearFilter];
  + return YES;
  + }
  + }
  +
  + // For auto complete input
  + if (control == self.autoCompleteInput)
  + {
  if ([self.autoCompleteInput currentEditor] != nil)
  {
  if (commandSelector == @selector(moveDown:))
  @@ -577,12 +605,12 @@ NSString *kInactiveTimerColor = @"#999999";
  // Start entry
  [self startButtonClicked:nil];
  -
  [self.autoCompleteInput resetTable];
  [self.liteAutocompleteDataSource clearFilter];
  }
  }
  - // NSLog(@"Selector = %@", NSStringFromSelector( commandSelector ) );
  + }
  +
  return retval;
  }
  