src/jwm_draw_framing/draw_framing_main_v0.56.rb
# def inc_mode ## Left over from cline_tool
# @opts['mode'] += 1
# if @opts['mode'] > 2
# @opts['mode'] = 0
# end
#end
#---------------------------
# onKeyUp is called when the user releases the key
# We use this to unlock the inference
# If the user holds down the shift key for more than 1/2 second, then we
# unlock the inference on the release.	Otherwise, the user presses shift
# once to lock and a second time to unlock.


onKeyUp is called when the user releases the key
We use this to unlock the inference
If the user holds down the shift key for more than 1/2 second, then we
unlock the inference on the release.   Otherwise, the user presses shift
once to lock and a second time to unlock.
onKeyUp is called when the user releases the key We use this to unlock the inference If the user holds down the shift key for more than 1 / 2 second then we unlock the inference on the release . Otherwise the user presses shift once to lock and a second time to unlock .
def onKeyUp(key, repeat, flags, view)
		if( key == CONSTRAIN_MODIFIER_KEY && view.inference_locked? && (Time.now - @shift_down_time) > 0.5 )
		view.lock_inference
		end
	end
def onKeyUp ( key , repeat , flags , view ) if ( key == CONSTRAIN_MODIFIER_KEY && view . inference_locked? && ( Time . now - @shift_down_time ) > 0.5 ) view . lock_inference end end
def inc_mode ## Left over from cline_tool
@opts['mode'] += 1
if @opts['mode'] > 2
@opts['mode'] = 0
end
end
def inc_mode ## Left over from cline_tool @opts [ ' mode ' ] + = 1 if @opts [ ' mode ' ] > 2 @opts [ ' mode ' ] = 0 end end
#onSetCursor # trigger change of cursor on screen
key
<not_specific>
repeat
<not_specific>
flags
<not_specific>
view
<not_specific>