Recent

Author Topic: Problem with hotkey Ctrl+/ on Qt5  (Read 2320 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2519
    • UVviewsoft
Problem with hotkey Ctrl+/ on Qt5
« on: November 03, 2023, 04:49:55 pm »
If I call in CudaText console command
dlg_hotkey('')
and press in appeared dlg the hotkey Ctrl+/, I get

* on GTK2 version: Ctrl+/ as result of ShortcutToText()
* on Qt5 version: Ctrl+NumDiv as result of ShortcutToText()

I guess I may make a demo app to show this.
« Last Edit: November 03, 2023, 04:59:11 pm by AlexTP »

AlexTP

  • Hero Member
  • *****
  • Posts: 2519
    • UVviewsoft
Re: Problem with hotkey Ctrl+/ on Qt5
« Reply #1 on: November 03, 2023, 04:58:38 pm »
I made a primitive demo.
Run the app.
Code sets TMenuItem.Shortcut to TextToShortcut('Ctrl+/') but Menu-item shows 'Ctrl+2' instead!
Bug?
App reacts to Ctrl+2 then (it shows new form caption)! App don't react to Ctrl+/ .




zeljko

  • Hero Member
  • *****
  • Posts: 1687
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Problem with hotkey Ctrl+/ on Qt5
« Reply #2 on: November 03, 2023, 05:09:57 pm »
Open issue, but please attach example project without 3rd party components.

AlexTP

  • Hero Member
  • *****
  • Posts: 2519
    • UVviewsoft
Re: Problem with hotkey Ctrl+/ on Qt5
« Reply #3 on: November 03, 2023, 05:16:40 pm »

 

TinyPortal © 2005-2018