[polari] roomList: Don't move keyboard focus on room changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] roomList: Don't move keyboard focus on room changes
- Date: Thu, 8 Aug 2013 13:10:38 +0000 (UTC)
commit 866170f3d8ef218c294e77a95e40ab892805426e
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 26 11:01:19 2013 +0200
roomList: Don't move keyboard focus on room changes
We want to move the selection to the new room, but not grab the
focus away from the entry (or whichever widget had it before).
src/roomList.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/roomList.js b/src/roomList.js
index a71bf00..00cd2b0 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -140,8 +140,12 @@ const RoomList = new Lang.Class({
if (!room)
return;
let row = this._getRowByRoom(room);
- if (row)
- this.widget.select_row(row);
+ if (!row)
+ return;
+
+ row.can_focus = false;
+ this.widget.select_row(row);
+ row.can_focus = true;
},
_onRowSelected: function(w, row) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]