Remove unnecessary changes

This commit is contained in:
DD 2018-03-19 12:47:59 -04:00
parent b4294b8268
commit 44eedfe225
3 changed files with 5 additions and 6 deletions

View file

@ -30,6 +30,7 @@ const getHoveredItem = function (event, hitOptions, subselect) {
if (!item) {
return null;
}
if (isBoundsItem(item)) {
return hoverBounds(item);
} else if (!subselect && isGroupChild(item)) {

View file

@ -33,16 +33,15 @@ const isGroupItem = function (item) {
};
const isPGTextItem = function (item) {
return getRootItem(item).data.isPGTextItem;
};
const isPointTextItem = function (item) {
return item.className === 'PointText';
};
const isPGTextItem = function (item) {
return getRootItem(item).data.isPGTextItem;
};
const setPivot = function (item, point) {
if (isBoundsItem(item)) {
item.pivot = item.globalToLocal(point);

View file

@ -205,7 +205,6 @@ class TextTool extends paper.Tool {
}
}
handleKeyDown (event) {
debugger;
if (event.event.target instanceof HTMLInputElement) {
// Ignore nudge if a text input field is focused
return;