From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.devel Subject: Suggestion: Remove direct keyboard handling for active elements from NS Webkit Xwidgets Date: Fri, 14 Oct 2022 21:58:07 +0000 Message-ID: <95D035E8-30B4-46D3-AC0C-8C9A9F706DF7@stanford.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Lars Ingebrigtsen To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 15 08:11:48 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojaOi-0007r7-8j for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Oct 2022 08:11:48 +0200 Original-Received: from localhost ([::1]:55846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojaOg-0000WR-RC for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Oct 2022 02:11:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojSh7-0007Ce-3h for emacs-devel@gnu.org; Fri, 14 Oct 2022 17:58:17 -0400 Original-Received: from mx0a-00000d04.pphosted.com ([148.163.149.245]:48820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojSh4-0002qy-1X for emacs-devel@gnu.org; Fri, 14 Oct 2022 17:58:15 -0400 Original-Received: from pps.filterd (m0102887.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EIW6VZ031614; Fri, 14 Oct 2022 14:58:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stanford.edu; h=from : to : cc : subject : date : message-id : content-type : content-id : content-transfer-encoding : mime-version; s=pps05272020; bh=WRKbZSODSBJZQN6x1+F6Tr51zwq1srOdBb11Mf1XFXg=; b=QKCJl957VFnULAum1KLO95CqM+QrdQLJuqAqydLQl9RkD1/KiSoMbsFfx56paDzdMu2A RfH6SVRd5dGR9qRzSFfllZMSnil/SJKybTDXfE1/DryxkOiQKsPgYkuat8ECTX7zhDHW vr76CH3ZQmZmxk/ewVMwlR0u27kQxLWfHbWiiQaHlv/HSO5T/D7CtpvSEbJDaSFB+cGq +ABSlukMKN5GgvmE99GmyWRWOgAMfKWc+MwF1x7NewDmmItRcFaTpKJS36H0phnu8j/s hZGbCYlBvrMnrtp+jtGUl1+O4GF729TKWwaGNj43feHEWlYV72GxVPSbTJNOkPVO5rWf lQ== Original-Received: from mx0b-00000d03.pphosted.com (mx0b-00000d03.pphosted.com [148.163.153.234]) by mx0a-00000d04.pphosted.com (PPS) with ESMTPS id 3k35uwc6cn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 14:58:10 -0700 Original-Received: from pps.filterd (m0102882.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EHDX5j032692; Fri, 14 Oct 2022 14:58:09 -0700 Original-Received: from mx0b-00000d06.pphosted.com (mx0b-00000d06.pphosted.com [148.163.139.119]) by mx0a-00000d03.pphosted.com (PPS) with ESMTPS id 3k34yx3bpu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 14:58:09 -0700 Original-Received: from pps.filterd (m0195432.ppops.net [127.0.0.1]) by mx0a-00000d06.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29ECew5F029539; Fri, 14 Oct 2022 14:58:09 -0700 Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by mx0a-00000d06.pphosted.com (PPS) with ESMTPS id 3k38d0sv22-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 14:58:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nTf7MXPp4LjLXmYw7M2IDCxsWAzB6OYitWBoknAEr0Z+JXN3RqKVhBo1F8LZl8fPwuVPVf4HF9QNAE+yDxPQV3KR3Bx+c829AMGsnPl0XHW4KM6eOqqPN6g85hEuufQ59ncQ47xeZPS3xHLGLN9IUYZ4jga/toQp6CjuiKTg5ZVYJad8vpXkaqIYlV1GNaHjVo4uV0Vj11Q+f6w3Prj+DB6LGax+xWF2dFTVg/KYxfvNgW7yp77FF2knwgkgLfws4Oj0uZ5/OS10U04HhmEAiPSXe5vqVZB3WWBLzW+8tnw5jeuDC5UWHOFqyznaGRlC/B4rme8p0FFrsrS6rK5zlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WRKbZSODSBJZQN6x1+F6Tr51zwq1srOdBb11Mf1XFXg=; b=XoaJJymUnEYs+acpHiRsCtgUwb0AUehA+xAS7vzHZeQS3rIsnA0XCm+evTB1cL7xlvmEuUt1vAhDO3GAVwa+9P6O2z6aPibFjMyM0IIW/q2s0Y1jKwSnG8zOo4VHyPw52R4uUpHbgDbpfbADtJ6UN77vGH2Np+nJZYHEpe/VqIC5HgZyPstjo8hPgRHt3xTzc0QYht9/bHEM8lFlJLJ0hRI5Nfoo938SggDdKlkFAA2yMRrWJgCHHNFz32pidk73OUBaj88hPzOAFm1kWQbqheJvKLY4nX2xUI7hPbJS0NDqs+fUj7xP9RRvXs4ThM9fQaa4EknA03Gn/RvLlRFBaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stanford.edu; dmarc=pass action=none header.from=stanford.edu; dkim=pass header.d=stanford.edu; arc=none Original-Received: from BY5PR02MB6771.namprd02.prod.outlook.com (2603:10b6:a03:200::10) by SA1PR02MB8541.namprd02.prod.outlook.com (2603:10b6:806:1f8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.22; Fri, 14 Oct 2022 21:58:07 +0000 Original-Received: from BY5PR02MB6771.namprd02.prod.outlook.com ([fe80::9bf9:1cfb:b090:cc9]) by BY5PR02MB6771.namprd02.prod.outlook.com ([fe80::9bf9:1cfb:b090:cc9%6]) with mapi id 15.20.5723.026; Fri, 14 Oct 2022 21:58:07 +0000 Thread-Topic: Suggestion: Remove direct keyboard handling for active elements from NS Webkit Xwidgets Thread-Index: AQHY4BgKu1TaX5X6SECYik7zb1JWVQ== Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR02MB6771:EE_|SA1PR02MB8541:EE_ x-ms-office365-filtering-correlation-id: f938a1b0-bbdd-4cde-bee1-08daae2f2d7b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XQn1Wb5Q2VeLJZc10Cg6XwF/WYv5Nl/QC1Di7Qx3MsletP52BI/i3Vxdbeg1/X8IgylTKaVvKd1p+I/wWK4qTJPhoYz5pqLCkryMLN4ipaMMdaSVHCPUI/CFvA7kAQ1QfBBS5/OFmkOgcwe0RzV85m1/QMV3QV5Tb5Kj6iLBW11bVrr+ojVoYpT8E9UGEGmoG8FFuBHo0kl+SxO7p2IzPBgyTve52VbXgAYbz3ekUGd+P1u129MLJ27W/C5eg0ludn7DcNGZKVpT9a0DC/OaI/Jt9LYKg3lCykgtj+BqWUPYrAQVexBRBrt9L8Gf2RCg1AYb9vgDhVY2lcNxENqehrXu6jyAigQvBMlg/D3RwKIglbRiVKjeaA9cN6UnRxFs0WeSzmXygQdplTP7do4JEtowZM7lWzxkcLajrHzyOE2dKk7pso7SNHJ54wku7U1FwW5DS6G6dFA9ra5ubg17O9Es1jmy/WSDlufTn+HP6t8B1am9pKmlJI5dWViQo/RWTgImGiB0Gf0Cb/c/Amp/aL2oxyNI9Gtmo5VzHBLBbX+ZslnBetm4hYfR0iPU9Bsdm6yj21j7EX0DHu7euytJSyooF3Lq2mTZNme6MOIYifie/D5mtOX29NhyUTA3uR54pCDLzB1h6E25KuXVMSTSgyQqkp58qf+SLiHnJlPvK+Dl+8We5gQ7FZ1/3iitS5m+FLamrAk5l8DCVxrJ/IxWa21soe6uoLNKkNMhVew/rUP89Uuh5fKQn5hbT+gSh Lieeq10WPttLGlkXViXFRd5xM32J9ePqb1tUqZbeXKu/mU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR02MB6771.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199015)(478600001)(6506007)(71200400001)(41320700001)(36756003)(38100700002)(6486002)(786003)(6916009)(33656002)(316002)(76116006)(54906003)(66556008)(5660300002)(8936002)(122000001)(91956017)(4326008)(64756008)(2906002)(8676002)(66946007)(4744005)(66446008)(75432002)(86362001)(186003)(26005)(66476007)(6512007)(2616005)(38070700005)(41300700001)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?l2D5H2HYXRp0htblPJkMJt5j/AIQ0FYfCN+I+O+pHFj8Rqy4/B8SvCH3kCCE?= =?us-ascii?Q?fP0TOTEZvyjivIUNgeQ2q8O2S+l5EGZIXhCn2hnZZqpne8mqcuOY19vHmuKk?= =?us-ascii?Q?A3S9P/mdBy82gDduIVtUUIYV7xpqi9rPjr9Imc8eRiNf9qSy4cGqZpqnR1Io?= =?us-ascii?Q?wvqKKDKOU84zQQg7mSP8M3wPYncDiFXbCW1HnOPBcXv7ixH+RQhH4JF38jTW?= =?us-ascii?Q?OLjQY3oliSU9lgoYopkSaz49NHXl+af3L8eN/p7qmHMTlFnhjWaSCEzD/xE2?= =?us-ascii?Q?Yvdbyak1dOfsTigwPTgZm5how9k2xBlFpRuBGSpsRN0ixQFntfvhi+cNNskP?= =?us-ascii?Q?RQ3aB5daHwox0mCKOBDOruKZjoVRK+ZCqOwlh8HfbLSlmL8ZhXGWrBCd5XDP?= =?us-ascii?Q?o++KTmKdmWQcQxwE11Itcoc0dO95x62i+2mcQYGDnDXBBukKJ7b6GggXbFbX?= =?us-ascii?Q?i+IPSrktYbrmEx8fk1/hfrgBqPuGXtaJcKYYLfZkTmzwCax5+w61X6wHDrAk?= =?us-ascii?Q?OlItjE0S72Y8mHcCamwUGgt6spK1sMbbVLliGKZ3jf2FEofXN5bd/RsvO0WT?= =?us-ascii?Q?1CMA/SV8ZB3VCoTdM2wOWGKqvuKyjsBXfrtc2hMJZaf0cGBKBpwwJocKJgep?= =?us-ascii?Q?n0 Content-ID: X-OriginatorOrg: stanford.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB6771.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f938a1b0-bbdd-4cde-bee1-08daae2f2d7b X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2022 21:58:07.5814 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 396573cb-f378-4b68-9bc8-15755c0c51f3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wH1dYjU9ebQmhzp0Y3mjvsailkHmkaRXQPF+T2DRK45JuUyeaQIPbSM/uqk9CZItEspfj6p3GZlfr0JuGv81Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR02MB8541 x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_11,2022-10-14_01,2022-06-22_01 X-Proofpoint-ORIG-GUID: kjsZim2NQk3JjyHIRIflioQnBxnfAxym X-Proofpoint-GUID: kjsZim2NQk3JjyHIRIflioQnBxnfAxym X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_11,2022-10-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=757 priorityscore=1501 suspectscore=0 phishscore=0 clxscore=1015 adultscore=100 bulkscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210140121 Received-SPF: pass client-ip=148.163.149.245; envelope-from=qthong@stanford.edu; helo=mx0a-00000d04.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 15 Oct 2022 02:08:12 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297755 Archived-At: Hi, Currently, the GTK port seem to always let Emacs handle keyboard events,=20 while NS port test if an INPUT/TEXTAREA element is active and let WKWebView directly handle the keyboard events in those cases. I think the GTK way is more flexible, as xwidget-webkit-edit-mode has shown= one can always pass through the event from Emacs side if desired. Shall we remove those NS-specific code to make the behavior consistent across the tw= o ports? Best, Qiantan