orion icon indicating copy to clipboard operation
orion copied to clipboard

Esc no longer closes emote picker

Open rakslice opened this issue 7 years ago • 5 comments

In the pre 1.6 versions, Esc closed the emote picker; this no longer works

rakslice avatar Jul 05 '17 23:07 rakslice

It seems that there are problems navigating between the emote picker search, the grid, and the chat text input box generally; I'll look into this further at some point.

rakslice avatar Jul 06 '17 03:07 rakslice

for me the esc only closes/hides the chat (the stable 1.6, on arch using Qt 5.9.1)...after multiple button tries/presses

ahjolinna avatar Jul 06 '17 16:07 ahjolinna

Found a bug regarding this, the ctrl + wheel prevented clicking links and interacting with chat. Whoopsydaisy. Fixed with removing the mousearea and adding small floating zoom buttons

alamminsalo avatar Jul 06 '17 20:07 alamminsalo

Okay, so a couple of things:

  • In Qt 5.9 / QtQuick 2.7, Esc key events do not happen by default but are available via shortcutOverride: https://doc.qt.io/qt-5/qml-qtquick-keys.html#shortcutOverride-signal
  • Focus switching by toggling the focus parameter does not work consistently anymore. I don't know of a solution to that yet.

rakslice avatar Jul 15 '17 03:07 rakslice

Okay, seems that using .forceActiveFocus() fixes the focus issue. Esc is still not getting picked up in the GridView for some reason despite providing shortcutOverride the same way as in the TextField.

rakslice avatar Jul 15 '17 20:07 rakslice