When I add select line lineNbr of me or select before line lineNbr of me right after set the hilitedline of me to lineNbr in my mouseup handler, it makes no difference. Arrowkeys up and down still do nothing. Not sure what you mean when you say that an insertion point of some type is necessary, since this is a field with listbehavior = true and it never has an insertion point, just a hilitedline.
And, I repeat, I have an equivalent list field in another stack with the same properties that works fine with the arrowkeys to change the hilitedline with no "select line x" or other work-around needed, ie, it works the way list fields are supposed to work: just click on the field to hilite a line, then arrowkey up or down to change the hilitedline. Still a mystery. I may need to delete the field and replace it with a copy of my working field from the other stack, then alter the script to work in the problematic stack. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 21, 2015, at 10:56 AM, Mike Bonner wrote: > Having a line hilited isn't enough. It seems you MUST have an insertion > point of some type. Either select the line lineNbr, or if there is nothing > selected, set the selectedchunk to char 1 to 0 of me > > > On Tue, Jul 21, 2015 at 8:38 AM, Peter M. Brigham <pmb...@gmail.com> wrote: > >> On Jul 21, 2015, at 2:07 AM, Kay C Lan wrote: >> >>> On Mon, Jul 20, 2015 at 11:17 AM, Peter M. Brigham <pmb...@gmail.com> >> wrote: >>> >>>> >>>> Having found that the focus is on the card, for reasons best known to >> the >>>> engine (certainly not to me), >>>> >>> >>> What does the Message Watcher say? If on clicking on a line in the fld >>> fires a salvo of messages, somewhere - frontscript, backscript, card or >>> stack script a handler is being fired that sends the focus elsewhere; >>> apparently the card. >>> >>> Do a global script search for 'go', 'send', 'select' and 'focus'. There >> are >>> probably other ways to remove the focus but those come readily to mind. >> >> I don't see anything in my mouseup script that would change the focus: >> >> on mouseup tBtn >> select empty >> -- putting "focus on me" here doesn't fix the problem >> put getGridCell() into g -- doesn't go to or select anything >> put item 1 of g into lineNbr >> put item 2 of g into colNbr >> if lineNbr = empty then >> exit mouseup >> else >> set the hilitedline of me to lineNbr >> -- this should put the focus in the field >> end if >> put line lineNbr of me into listEntry >> put getItem(listEntry, 1, tab) into noteTitle >> -- doesn't go to or select anything >> displayNote noteTitle >> -- fetches a customprop and puts it into the display field >> -- but this shouldn't move the focus >> -- putting "focus on me" here doesn't fix the problem >> if tBtn <> 3 then exit mouseup >> put popChoose("rename","delete") into u >> switch u >> case "rename" >> renameNote noteTitle >> break >> case "delete" >> answer "Are you sure you want to delete this note? This is not >> undo-able!" with "OK" or "whoops!" \ >> as sheet >> if it is not "OK" then exit to top >> deleteNote lineNbr, noteTitle >> break >> end switch >> end mouseup >> >> I'll take a look at the messagewatcher when I get a chance. >> >> -- Peter >> >> Peter M. Brigham >> pmb...@gmail.com >> http://home.comcast.net/~pmbrig >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode