Hotkeys in Kivy-desktop
<p>I would like to add Hotkeys to my project. </p>

<p>For example: ctrl + S  for saving</p>

<p>I found a small working example. But it tests only whether one key is pressed or not.
How could I check for multiple button pressed?</p>

<p>edit: the modifiers is an empty list. How can I use the modifiers?</p>

<p>Here is the code I tried:</p>

<pre><code>from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.textinput import TextInput
from kivy.uix.widget import Widget
from kivy.properties import StringProperty,ObjectProperty
from kivy.core.window import Window, Keyboard
from kivy.logger import Logger

class textInsert(FloatLayout):
    def __init__(self, **kwargs):
        super(textInsert, self).__init__(**kwargs)

        text = StringProperty()

      ########################################
        keyboard = Window.request_keyboard(self._keyboard_released, self)
        keyboard.bind(on_key_down=self._keyboard_on_key_down)
        ########################################

     #end def __init__

    def _keyboard_released(self):
        self.focus = False

    def _keyboard_on_key_down(self, window, keycode, text, modifiers):

        if keycode[1] in ["s","y","q","w"]:
           print("its in the list")
           return True
        else:
           print('returned false')
           return False


class ROOT(App):
   def build(self):
      return textInsert()

if __name__ == '__main__':
   ROOT().run()
</code></pre>