Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): replace vue-shortkey with vueuse directive #12698

Merged
merged 6 commits into from
Aug 22, 2024

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Jul 12, 2024

☑️ Resolves

  • drop vue-shortkey library
  • use useHotKey composable (from vue-lib):

Important

  • Ctrl+F doesn't work neither on main branch nor here
  • replace shortcuts directive:
    • toggle audio / video / raised hand
    • toggle fullscreen
    • focus shorcuts
  • drop @keydown listener from NcButton (it's same as click)

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

No visual or UX changes

🚧 Tasks

  • Follow-up:
    • Ctrl+Up - edit last: move to directive
    • Esc - go to root: add directive
    • Settings KBD: refactor

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible

@nickvergessen
Copy link
Member

31 or backport?

@Antreesy
Copy link
Contributor Author

31 or backport?

Planning to upstream to vue-lib

@Antreesy Antreesy marked this pull request as draft August 15, 2024 08:37
- codestyle refactoring
- replace if blocks with ternary operators
- remove redundant method

Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the fix/noid/replace-vue-shortkey-directive branch from 6d7ede0 to 68c100c Compare August 21, 2024 18:16
@@ -246,6 +241,7 @@ export default {

created() {
window.addEventListener('beforeunload', this.preventUnload)
useHotKey('f', this.handleAppSearch, { ctrl: true, stop: true, prevent: true })
Copy link
Contributor Author

@Antreesy Antreesy Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work because event is captured by UnifiedSearch first (same on master, so not related to this PR):

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works in the desktop client

- move push-to-talk feature to related component

Signed-off-by: Maksim Sukharev <[email protected]>
- LeftSidebar searchbox
- NewMessage input

Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the fix/noid/replace-vue-shortkey-directive branch from 68c100c to 43fdc1b Compare August 21, 2024 18:31
@Antreesy Antreesy marked this pull request as ready for review August 21, 2024 18:31
@Antreesy Antreesy merged commit d646635 into main Aug 22, 2024
46 checks passed
@Antreesy Antreesy deleted the fix/noid/replace-vue-shortkey-directive branch August 22, 2024 11:12
@Antreesy
Copy link
Contributor Author

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review dependencies Pull requests that update a dependency file feature: frontend 🖌️ "Web UI" client technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants