Hi everyone! :wave: I’m currently trying to disabl...
# compose-web
c
Hi everyone! 👋 I’m currently trying to disable default browser behaviors to handle keyboard shortcuts entirely within my Compose Web app. I'm using
onPreviewKeyEvent
to intercept inputs. This was recently fixed and now works perfectly for TAB traversal (https://github.com/JetBrains/compose-multiplatform-core/pull/2452) (I can just consume the event), but it isn't preventing other default browser behavior like Ctrl+F or Ctrl+R. Even if I consume the event, the browser still triggers the Find or Refresh actions. So in my opinion this solution is lacking, cause in compose key event management we want to be able to automatically prevent default behavior on any kind of event which is consumed in the preview event traversal. So when registering a key event we would have to wait for it to be traversed down and then return if it was consumed or not and if it was it should always prevent default behavior. Thanks in advance for any kind of response :D