Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix on copy source shortcut doesn't work: https://bugzilla.redhat.com…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Nov 8, 2012
1 parent abf3189 commit 4768638
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions zanata-war/src/main/java/org/zanata/webtrans/client/ui/Editor.java
@@ -1,15 +1,20 @@
package org.zanata.webtrans.client.ui;

import static org.zanata.webtrans.client.view.TargetContentsDisplay.EditingState.SAVED;
import static org.zanata.webtrans.client.view.TargetContentsDisplay.EditingState.UNSAVED;

import java.util.List;

import org.zanata.webtrans.client.resources.NavigationMessages;
import org.zanata.webtrans.client.view.TargetContentsDisplay;
import org.zanata.webtrans.shared.model.TransUnitId;

import com.google.common.base.Objects;
import com.google.common.base.Strings;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.FocusEvent;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
Expand All @@ -22,8 +27,6 @@
import com.google.gwt.user.client.ui.InlineLabel;
import com.google.gwt.user.client.ui.Widget;

import static org.zanata.webtrans.client.view.TargetContentsDisplay.EditingState.*;

public class Editor extends Composite implements ToggleEditor
{
private final String displayString;
Expand Down Expand Up @@ -126,6 +129,12 @@ public void onTextAreaBlur(BlurEvent event)
isFocused = false;
}

@UiHandler("textArea")
public void onTextAreaFocus(FocusEvent event)
{
isFocused = true;
}

@UiHandler("copyIcon")
public void onCopySource(ClickEvent event)
{
Expand Down

0 comments on commit 4768638

Please sign in to comment.