import sys
from PyQt5.QtWidgets import QApplication
from keyboard.ui.widgets import KeyboardWindow

if __name__ == '__main__':
  app = QApplication([])
  window = KeyboardWindow()
  window.showMaximized()
  sys.exit(app.exec())

import sys
import signal
from PyQt5.QtWidgets import QApplication
from keyboard.ui.widgets import KeyboardWindow

if __name__ == '__main__':
  signal.signal(signal.SIGINT, signal.SIG_DFL)
  app = QApplication([])
  window = KeyboardWindow()
  window.showMaximized()
  sys.exit(app.exec())

Add signal handler to quit the application
Add signal handler to quit the application

  import sys
+ import signal
  from PyQt5.QtWidgets import QApplication
  from keyboard.ui.widgets import KeyboardWindow
  
  if __name__ == '__main__':
+   signal.signal(signal.SIGINT, signal.SIG_DFL)
    app = QApplication([])
    window = KeyboardWindow()
    window.showMaximized()
    sys.exit(app.exec())
  
Add signal handler to quit the application
## Code Before:
import sys
from PyQt5.QtWidgets import QApplication
from keyboard.ui.widgets import KeyboardWindow

if __name__ == '__main__':
  app = QApplication([])
  window = KeyboardWindow()
  window.showMaximized()
  sys.exit(app.exec())

## Instruction:
Add signal handler to quit the application
## Code After:
import sys
import signal
from PyQt5.QtWidgets import QApplication
from keyboard.ui.widgets import KeyboardWindow

if __name__ == '__main__':
  signal.signal(signal.SIGINT, signal.SIG_DFL)
  app = QApplication([])
  window = KeyboardWindow()
  window.showMaximized()
  sys.exit(app.exec())
