#NEWLINE# def keyboard_on_key_down( self , window , keycode , text , modifiers ) : #NEWLINE# #INDENT# is_osx = ( sys . platform == 'darwin' ) #NEWLINE# ( ctrl , cmd ) = ( 64 , 1024 ) #NEWLINE# ( key , key_str ) = keycode #NEWLINE# if ( text and ( not ( key in ( list ( self . interesting_keys . keys ( ) ) + [ 27 ] ) ) ) ) : #NEWLINE# #INDENT# if ( ( modifiers == [ 'ctrl' ] ) or ( is_osx and ( modifiers == [ 'meta' ] ) ) ) : #NEWLINE# #INDENT# if ( key == ord ( 's' ) ) : #NEWLINE# #INDENT# self . catalog . change_kv ( True ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return super ( KivyRenderTextInput , self ) . keyboard_on_key_down ( window , keycode , text , modifiers )