Skip to content

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
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
@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.

5 participants