Improved inline editing and focus handling