zotero/zotero — pull request #13 by willsALMANJ (2011-11-07 22:05:55+00:00)
Title: Allow \n and \r as delimiters for entering tags

These changes allow you to enter multiple tags at once by separating them with \n, \r, or \r\n. To prevent newlines from being stripped, the tag textbox's newline property was set to pasteintact, but pressing enter when the tag editor is active still calls addTag, so there should be no change to the previous functionality of the tags editor. The delimited tags are recognized at the beginning of addTag() and added by a call to addTags(). The one thing I was not sure about was what value to return when multiple delimited tags are added by addTag(). Right now, addTag() just returns false. Perhaps it should return an array of tagID's? I am not sure that this return value is used anywhere currently.