Author Topic: CUA _select_type()=='' unless......  (Read 2778 times)

MindprisM

  • Senior Community Member
  • Posts: 127
  • Hero Points: 8
CUA _select_type()=='' unless......
« on: January 09, 2009, 04:56:55 pm »
How can I determine the _select_type under CUA? Is there a way to get this information for a selection that isn't locked?

Example:
<Shift-right>                                                   _select_type=='', not 'CHAR'?
<select_char() key><right><select_char() key>     _select_type=='CHAR',  ok!
<select_char() key><right>                                _select_type=='', not 'CHAR'?

same with <select_line() key>
but <select_block() key><right><down><my_keyhandler()>    my_keyhandler() isnt called, instead the block is replaced with the key my_keyhandler() is assigned to. BUT _select_type=='BLOCK'

Is the correct and reproducible? (I don't see anywhere I mucked up the original source)
How do I determine what is happening with the selection under CUA without flagging the source?
The count_lines_in_selection() won't work without a locked selection.