gyselroth / balloon-client-web

balloon web user interface
GNU General Public License v3.0
2 stars 5 forks source link

Differences in closing fullscreen window with office #258

Closed raffis closed 4 years ago

raffis commented 5 years ago

Describe the bug

If an office fullscreen window gets started, it may be closed via close or ESC. (Note with ESC issue #257 is also affected.)

If the windows gets closed via close, the popup closed immediately. If one clicks with the cursor on the right side of the window first (not in the iframe), and then hit esc, balloon asks if the file got already saved.

To Reproduce

See above.

Expected behavior

  1. Always close if one hits [ESC] (#257 )
  2. The same action if ESC or close button.

Best: Check if the file got saved somehow or trigger save. Maybe this is possible via PostMessage: https://wopi.readthedocs.io/en/latest/scenarios/postmessage.html

Environment

Additional context

Add any other context about the problem here.

pixtron commented 4 years ago

As office itself is listening to ESC in some cases (eg. marked text), it does not make sense to listen on ESCto close the document, while the focus is in Office itself.