I've been wanting to figure this out for years. When trying to rename an open PREVIEW image file by typing a new filename directly into the name field at the very top of the Toolbar's Name field, the only way I can execute that name change is by hitting TAB KEY vs the ENTER key. If I hit TAB, the new name sticks. If I hit ENTER, the filename is not changed.
Same behavior for opened TEXT DOCs as well.
I understand that "a solution" is to simply remember to use the TAB key vs the ENTER key, however, in my 25+ years using Macs and Preview, that "solution" has never stuck behaviorally, because my muscle memory is far stronger and more deeply reinforced by an exponentially larger number of Finder file list rename operations where one types the new name and hits ENTER to execute the rename.
My question is: Is there any Terminal code or other solution that would enable me to override using Mac's default TAB KEY and instead allow me to hit ENTER, which for me is far more intuitive to my workflow?