Fix shortcut when creating objects
It fixes the bug that the shortcut does not get overridden while the object text is being focused and edited.
It fixes the bug that the shortcut does not get overridden while the object text is being focused and edited.