Skip to content

Commit

Permalink
port qooxdoo/qooxdoo#10632 while there is no new qx release
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Oct 26, 2023
1 parent 8b0ddf2 commit 7165e6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/CallBackery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use CallBackery::Plugin::Doc;
use CallBackery::Database;
use CallBackery::User;

our $VERSION = '0.47.8';
our $VERSION = '0.47.9';


=head2 config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,13 @@ qx.Class.define("callbackery.ui.plugin.Action", {
// in ios/android buttons do not necessarily get focus when clicked
// so we need to do it manually, since this happens on different
// browsers, chances are this is not a bug but by design :)
button.addListener('touchstart', () => {
if (button.isFocusable()) {
button.focus();
}
}, this );

// once https://github.com/qooxdoo/qooxdoo/pull/10632 is released
// this here can go away
button.addListenerOnce('appear',() => {
let el = button.getContentElement().getDomElement();
button.addListener('touchstart', () => { el.focus(); }, this);
});
button.addListener('execute', action, this);
if (btCfg.addToMenu) {
menues[btCfg.addToMenu].add(button);
Expand Down

0 comments on commit 7165e6b

Please sign in to comment.