livecode - Shortcut key have problems -


i have got of coding shortcut. problem have scrolling filed when performing shortcut key event place particular key scrolling field eg: if press alt+b b placed inside scrolling field

on rawkeydown thekeynumber      switch (thekeynumber)        case 98 -- b          if altkey  down            answer"hai"            end if          break     end switch    pass rawkeydown end rawkeydown 

the behavior you're seeing occurring because you're not exiting rawkeydown handler when altkey detected. try this:

on rawkeydown thekeynumber    switch (thekeynumber)        case 98 -- b          if altkey  down             answer "hai"             exit rawkeydown #<---exit here          end if       break     end switch    pass rawkeydown end rawkeydown 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -