}
public static void showAddTextAttributeDialog(String heading, final TextBoxBase addTextTa, final IDialogCallback eventRegister) {
final DialogBox origDialog = new DialogBox();
FocusPanel fp = new FocusPanel();
origDialog.add(fp);
fp.addKeyPressHandler(new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if(event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ESCAPE)
origDialog.hide();
}