Cursive sends an event for every user input ; most of these are just ignored and have no effect. The Cursive root has a add_global_callback method to call a function anytime a certain event is fired.
This way of chaining method to set-up the view is very common in cursive. Most views provide chainable variants of their methods, to allow creating the view and configuring it in one spot.